fixed classes without variable names breaking the sheet

This commit is contained in:
Stefan Zermatten
2022-07-25 15:21:38 +02:00
parent 6ea882a053
commit 03578b2066

View File

@@ -24,7 +24,9 @@ export default function getSlotFillFilter({slot, libraryIds}){
slotFillerType: 'classLevel',
}]
});
filter.variableName = slot.variableName;
if (slot.variableName) {
filter.variableName = slot.variableName;
}
// Only search for levels the class needs
if (slot.missingLevels && slot.missingLevels.length) {