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;