diff --git a/lib/core/plugins.js b/lib/core/plugins.js index d3479f58..cad5f71e 100644 --- a/lib/core/plugins.js +++ b/lib/core/plugins.js @@ -111,6 +111,8 @@ Plugins.prototype.getPluginsProperty = function(pluginType, property, sub_proper return plugin[property]; }); + matchingProperties = matchingProperties.filter((property) => property); + //return flattened list if (matchingProperties.length === 0) return []; return matchingProperties.reduce((a,b) => { return a.concat(b); }) || [];