From 35ee6445661ce8afe8bf3eab34e1d183ef29f408 Mon Sep 17 00:00:00 2001 From: Dan Levitas Date: Mon, 26 Aug 2024 19:02:08 +0000 Subject: [PATCH] [FIX] remove unncessary error if sequence specified --- ui/src/Objects.vue | 2 ++ ui/src/libUnsafe.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/ui/src/Objects.vue b/ui/src/Objects.vue index 97befa3..4c29174 100755 --- a/ui/src/Objects.vue +++ b/ui/src/Objects.vue @@ -414,6 +414,7 @@ import { fileLogicLink, dwiQA, petQA, + updateErrorMessages, } from './libUnsafe'; import AsyncImageLink from './components/AsyncImageLink.vue'; @@ -726,6 +727,7 @@ export default defineComponent({ setRun(this.ezbids); this.ezbids.objects.forEach(this.validate); setIntendedFor(this.ezbids); // keep this last, otherwise IntendedFor in Dataset Review can be messed up + updateErrorMessages(this.ezbids); }, submitForm(data: any) { diff --git a/ui/src/libUnsafe.ts b/ui/src/libUnsafe.ts index c027acd..6445f25 100755 --- a/ui/src/libUnsafe.ts +++ b/ui/src/libUnsafe.ts @@ -2080,6 +2080,16 @@ export function metadataAlerts( return metadataAlertFields; } +export function updateErrorMessages($root: IEzbids) { + $root.objects.forEach((o: IObject) => { + const err_str = "Acquisition cannot be resolved. Please determine whether or not this acquisition should be converted to BIDS." + if (o._type !== "exclude" && o.analysisResults.errors.includes(err_str)) { + const err_index = o.analysisResults.errors.indexOf(err_str); + o.analysisResults.errors.splice(err_index, 1); + } + }) +} + // //TODO: Need to work on this more // export function updateParticipantsInfo($root: IEzbids) { // let participantsInfo: any = $root.participantsInfo;