Skip to content

Commit

Permalink
Merge pull request #581 from chrisfilo/fix/no_stim
Browse files Browse the repository at this point in the history
Closes #544
  • Loading branch information
olgn authored Sep 25, 2018
2 parents b1574fd + 46b2d97 commit 2befa91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/bids/fullTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const fullTest = (fileList, callback) => {
})
}
}
if (stimFiles.length) {
if (stimFiles && stimFiles.length) {
// add unique new events to the stimuli.events array
stimuli.events = [...new Set([...stimuli.events, ...stimFiles])]
}
Expand Down

0 comments on commit 2befa91

Please sign in to comment.