mirror of https://github.com/embarklabs/embark.git
filter for plugins that have defined properties
This commit is contained in:
parent
3f20f400dd
commit
8458acd207
|
@ -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); }) || [];
|
||||
|
|
Loading…
Reference in New Issue