Skip to content

Commit 2398249

Browse files
committed
fix: array to object check
1 parent 425c590 commit 2398249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/groups/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class ConfigGroup extends GroupHelper {
117117
this.opts['options'] = newOptions;
118118
}
119119
else {
120-
if(!configOptions.length) {
120+
if(Array.isArray(configOptions) && !configOptions.length) {
121121
this.opts['options'] = {};
122122
return;
123123
}

0 commit comments

Comments
 (0)