Skip to content

Commit d426fd7

Browse files
committed
Catch case for when ignore list is null
1 parent b8f31ec commit d426fd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validations/naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function validateFolderName(article, ignoreList = []) {
1616
});
1717

1818
for (let folder of folders) {
19-
if(ignoreList.includes(folder)){
19+
if(ignoreList && ignoreList.includes(folder)){
2020
continue;
2121
}
2222

0 commit comments

Comments
 (0)