Improved slot filling UI usability

This commit is contained in:
Stefan Zermatten
2023-06-05 15:44:53 +02:00
parent 513c0f7148
commit 1096c53f49
11 changed files with 182 additions and 125 deletions

View File

@@ -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',
}]
});

View File

@@ -50,7 +50,6 @@ describe('Slot fill filter', function () {
$or: [{
type: 'feature'
}, {
type: 'slotFiller',
slotFillerType: 'feature',
}],
}]);