Improved slot filling UI usability
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export default function getSlotFillFilter({ slot, libraryIds }) {
|
||||
|
||||
if (!slot) throw 'Slot is required';
|
||||
if (!libraryIds) throw 'LibraryIds is required';
|
||||
if (!slot) throw 'Slot is required for getSlotFillFilter';
|
||||
if (!libraryIds) throw 'LibraryIds is required for getSlotFillFilter';
|
||||
|
||||
let filter = {
|
||||
removed: { $ne: true },
|
||||
@@ -13,7 +13,6 @@ export default function getSlotFillFilter({ slot, libraryIds }) {
|
||||
$or: [{
|
||||
type: slot.slotType
|
||||
}, {
|
||||
type: 'slotFiller',
|
||||
slotFillerType: slot.slotType,
|
||||
}]
|
||||
});
|
||||
@@ -22,7 +21,6 @@ export default function getSlotFillFilter({ slot, libraryIds }) {
|
||||
$or: [{
|
||||
type: 'classLevel',
|
||||
}, {
|
||||
type: 'slotFiller',
|
||||
slotFillerType: 'classLevel',
|
||||
}]
|
||||
});
|
||||
|
||||
@@ -50,7 +50,6 @@ describe('Slot fill filter', function () {
|
||||
$or: [{
|
||||
type: 'feature'
|
||||
}, {
|
||||
type: 'slotFiller',
|
||||
slotFillerType: 'feature',
|
||||
}],
|
||||
}]);
|
||||
|
||||
Reference in New Issue
Block a user