Skip to content

Commit 4b9bd3c

Browse files
committed
fix: #100 - blank screen level up
1 parent 0b48358 commit 4b9bd3c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/components/organisms/dnd5e/Tabs/LevelUp.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@
186186
}
187187
188188
/** REACTIVE */
189-
190189
$: html = $characterClass?.system?.description.value || "";
191190
$: subClassProp = activeSubClass;
192191
$: classProp = $activeClass;
@@ -214,7 +213,6 @@
214213
: [];
215214
216215
$: classKeys = Object.keys($actor._classes);
217-
218216
$: classLevels = classKeys.map((classKey) => {
219217
const classObj = $actor._classes[classKey]
220218
return classObj.uuid == $activeClass ? classObj.system.levels + 1 : classObj.system.levels;
@@ -223,14 +221,11 @@
223221
$: activeClassObj = $actor._classes[activeClassKey];
224222
$: activeClassIndex = classKeys.indexOf(activeClassKey);
225223
$: activeClassLevel = classLevels[activeClassIndex];
226-
227-
228224
$: filteredClassIndex = mappedClassIndex
229225
.filter((i) => {
230226
return i.type == 'class'
231-
&& DonationTracker.canViewItem(i)
232227
//- @why: don't include classes that are already in the character
233-
&& !classKeys.includes(i.label.toLowerCase())
228+
!classKeys.includes(i.label.toLowerCase())
234229
})
235230
.sort((a, b) => a.label.localeCompare(b.label))
236231

0 commit comments

Comments
 (0)