Skip to content

Commit

Permalink
fix: #100 - blank screen level up
Browse files Browse the repository at this point in the history
  • Loading branch information
geoidesic committed Sep 22, 2024
1 parent 0b48358 commit 4b9bd3c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/components/organisms/dnd5e/Tabs/LevelUp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
}
/** REACTIVE */
$: html = $characterClass?.system?.description.value || "";
$: subClassProp = activeSubClass;
$: classProp = $activeClass;
Expand Down Expand Up @@ -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;
Expand All @@ -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))
Expand Down

0 comments on commit 4b9bd3c

Please sign in to comment.