Skip to content

Commit

Permalink
Addressing issue #1862 by filtering out Boolean values from the plugi…
Browse files Browse the repository at this point in the history
…ns list in the config.
  • Loading branch information
nitsakh committed Jun 12, 2017
1 parent 056c88f commit a049d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/config/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ const _init = function (cfg) {
notify('Error reading configuration: `config` key is missing');
return _extractDefault(cfg.defaultCfg);
}
// Ignore undefined values in plugin array Issue #1862
_cfg.plugins = _cfg.plugins.filter(Boolean);
return _cfg;
}
return _extractDefault(cfg.defaultCfg);
Expand Down

0 comments on commit a049d69

Please sign in to comment.