Skip to content

Commit

Permalink
fix: array to object check
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Sep 28, 2019
1 parent 425c590 commit 2398249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/groups/config.js
Expand Up @@ -117,7 +117,7 @@ class ConfigGroup extends GroupHelper {
this.opts['options'] = newOptions;
}
else {
if(!configOptions.length) {
if(Array.isArray(configOptions) && !configOptions.length) {
this.opts['options'] = {};
return;
}
Expand Down

0 comments on commit 2398249

Please sign in to comment.