From 4b9bd3c0008d1f32fdb076a792cc5541cc4a349c Mon Sep 17 00:00:00 2001 From: Noel da Costa Date: Sun, 22 Sep 2024 10:45:09 +0100 Subject: [PATCH] fix: #100 - blank screen level up --- src/components/organisms/dnd5e/Tabs/LevelUp.svelte | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/components/organisms/dnd5e/Tabs/LevelUp.svelte b/src/components/organisms/dnd5e/Tabs/LevelUp.svelte index f90e500..7621ea2 100644 --- a/src/components/organisms/dnd5e/Tabs/LevelUp.svelte +++ b/src/components/organisms/dnd5e/Tabs/LevelUp.svelte @@ -186,7 +186,6 @@ } /** REACTIVE */ - $: html = $characterClass?.system?.description.value || ""; $: subClassProp = activeSubClass; $: classProp = $activeClass; @@ -214,7 +213,6 @@ : []; $: classKeys = Object.keys($actor._classes); - $: classLevels = classKeys.map((classKey) => { const classObj = $actor._classes[classKey] return classObj.uuid == $activeClass ? classObj.system.levels + 1 : classObj.system.levels; @@ -223,14 +221,11 @@ $: activeClassObj = $actor._classes[activeClassKey]; $: activeClassIndex = classKeys.indexOf(activeClassKey); $: activeClassLevel = classLevels[activeClassIndex]; - - $: filteredClassIndex = mappedClassIndex .filter((i) => { return i.type == 'class' - && DonationTracker.canViewItem(i) //- @why: don't include classes that are already in the character - && !classKeys.includes(i.label.toLowerCase()) + !classKeys.includes(i.label.toLowerCase()) }) .sort((a, b) => a.label.localeCompare(b.label))