From 2398249dcf23232b15c22d330681ca19f442e394 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Sat, 28 Sep 2019 06:01:41 +0200 Subject: [PATCH] fix: array to object check --- lib/groups/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/groups/config.js b/lib/groups/config.js index 93cec2b48eb..503540a0cdc 100644 --- a/lib/groups/config.js +++ b/lib/groups/config.js @@ -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; }