From 03578b20662823d6fe4352b04eae434d7cd460dd Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Mon, 25 Jul 2022 15:21:38 +0200 Subject: [PATCH] fixed classes without variable names breaking the sheet --- .../creature/creatureProperties/methods/getSlotFillFilter.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/imports/api/creature/creatureProperties/methods/getSlotFillFilter.js b/app/imports/api/creature/creatureProperties/methods/getSlotFillFilter.js index c80f7fa3..d4670c95 100644 --- a/app/imports/api/creature/creatureProperties/methods/getSlotFillFilter.js +++ b/app/imports/api/creature/creatureProperties/methods/getSlotFillFilter.js @@ -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) {