Level up dialog now working

This commit is contained in:
Stefan Zermatten
2022-07-05 15:40:55 +02:00
parent 1a71c2cfa7
commit b8a03245ea
4 changed files with 22 additions and 18 deletions

View File

@@ -27,14 +27,10 @@ export default function getSlotFillFilter({slot, libraryIds}){
filter.variableName = slot.variableName;
// Only search for levels the class needs
const levels = [];
if (slot.missingLevels && slot.missingLevels.length) {
levels.push(...slot.missingLevels);
} else if (slot.level) {
levels.push(slot.level);
}
if (levels.length) {
filter.level = {$or: levels};
filter.level = {$in: slot.missingLevels};
} else {
filter.level = (slot.level || 0) + 1;
}
}
let tagsOr = [];