mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-11 22:44:45 +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];
|
return plugin[property];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
matchingProperties = matchingProperties.filter((property) => property);
|
||||||
|
|
||||||
//return flattened list
|
//return flattened list
|
||||||
if (matchingProperties.length === 0) return [];
|
if (matchingProperties.length === 0) return [];
|
||||||
return matchingProperties.reduce((a,b) => { return a.concat(b); }) || [];
|
return matchingProperties.reduce((a,b) => { return a.concat(b); }) || [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user