Skip to content

Commit

Permalink
Merge pull request #17851 from dannon/fix-miscinfo-fixthis
Browse files Browse the repository at this point in the history
[24.0] Fix incorrect miscinfo 'fix this' display
  • Loading branch information
martenson authored Mar 27, 2024
2 parents f5e07b1 + 572a7b5 commit d8e4f9d
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions client/src/components/History/Content/Dataset/DatasetMiscInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,19 @@ const knownErrors = [{ regex: sharingErrorRex, modalRef: sharingError }];
const props = defineProps<Props>();
const fixable = computed(() => {
return true;
return knownErrors.some((error) => error.modalRef.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;
Expand Down

0 comments on commit d8e4f9d

Please sign in to comment.