Update plugins.js

This commit is contained in:
Wyatt Johnson
2018-02-27 15:14:46 -07:00
parent 5d58c4f82b
commit 588a3d9065
@@ -135,6 +135,10 @@ class PluginsService {
.filter(o => o.module.slots && o.module.slots[slot])
.map(o => o.module.slots[slot])
);
if (slotSize > 0 && slots.length > slotSize) {
console.warn(`Slot[${slot}] supports a maximum of ${slotSize} plugins providing slots, got ${slots.length}, will only use the first ${slotSize}`);
}
return (slotSize > 0 ? slots.slice(0, slotSize) : slots)
.map((component, i) => ({