Skip to content

Commit 2befa91

Browse files
authored
Merge pull request #581 from chrisfilo/fix/no_stim
Closes #544
2 parents b1574fd + 46b2d97 commit 2befa91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validators/bids/fullTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const fullTest = (fileList, callback) => {
170170
})
171171
}
172172
}
173-
if (stimFiles.length) {
173+
if (stimFiles && stimFiles.length) {
174174
// add unique new events to the stimuli.events array
175175
stimuli.events = [...new Set([...stimuli.events, ...stimFiles])]
176176
}

0 commit comments

Comments
 (0)