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…
Reference in New Issue