From 572a7b58aac17a7b0514dcbb34fbd3c757b1be57 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Wed, 27 Mar 2024 10:10:34 -0400 Subject: [PATCH] Walk all (just the one) knownErrors --- .../components/History/Content/Dataset/DatasetMiscInfo.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue b/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue index ae8845b98da..48da4347249 100644 --- a/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue +++ b/client/src/components/History/Content/Dataset/DatasetMiscInfo.vue @@ -16,9 +16,7 @@ const knownErrors = [{ regex: sharingErrorRex, modalRef: sharingError }]; const props = defineProps(); const fixable = computed(() => { - // Assume the intent is to branch this out to other types of errors, so - // leaving the computed in. - return sharingError.value; + return knownErrors.some((error) => error.modalRef.value); }); function checkForKnownErrors() {