Skip to content

Commit 24b1979

Browse files
committed
fix: Do not crash on missing datasetTypes option
1 parent 27373e0 commit 24b1979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validators/bids.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function validate(
7373
}
7474

7575
// Empty list defaults to allow all
76-
if (options.datasetTypes.length) {
76+
if (options.datasetTypes?.length) {
7777
const datasetType = (dsContext.dataset_description.DatasetType ?? 'raw') as string
7878
if (!options.datasetTypes.includes(datasetType)) {
7979
dsContext.issues.add({

0 commit comments

Comments
 (0)