mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 14:34:40 +00:00
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…
x
Reference in New Issue
Block a user