Skip to content

Commit

Permalink
[FIX] remove unncessary error if sequence specified
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Levitas committed Aug 26, 2024
1 parent f41542d commit 35ee644
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/Objects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,7 @@ import {
fileLogicLink,
dwiQA,
petQA,
updateErrorMessages,
} from './libUnsafe';
import AsyncImageLink from './components/AsyncImageLink.vue';
Expand Down Expand Up @@ -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) {
Expand Down
10 changes: 10 additions & 0 deletions ui/src/libUnsafe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 35ee644

Please sign in to comment.