diff --git a/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue b/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue index fa223711773..ae8845b98da 100644 --- a/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue +++ b/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue @@ -16,21 +16,21 @@ const knownErrors = [{ regex: sharingErrorRex, modalRef: sharingError }]; const props = defineProps(); const fixable = computed(() => { - return true; + // Assume the intent is to branch this out to other types of errors, so + // leaving the computed in. + return sharingError.value; }); -watch( - props, - () => { - for (const knownError of knownErrors) { - const regex = knownError.regex; - if (props.miscInfo.match(regex)) { - knownError.modalRef.value = true; - } +function checkForKnownErrors() { + for (const knownError of knownErrors) { + const regex = knownError.regex; + if (props.miscInfo.match(regex)) { + knownError.modalRef.value = true; } - }, - { immediate: true } -); + } +} + +watch(props, checkForKnownErrors, { immediate: true }); function showHelp() { showErrorHelp.value = true;