Skip to content

Commit

Permalink
Pack check fails if data.creatures isnt an array.
Browse files Browse the repository at this point in the history
  • Loading branch information
charles committed Dec 25, 2023
1 parent cfa0803 commit 1cf5ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/summon/menu/SummoningMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
data.creatures = loadPacks();
} else if (data.creatures instanceof CompendiumCollection) {
data.creatures = loadPacks(false, false, [data.creatures.metadata]);
} else if (data.creatures.some((pack) => pack instanceof CompendiumCollection)) {
} else if (data.creatures.some && data.creatures.some((pack) => pack instanceof CompendiumCollection)) {
data.creatures = new Promise((resolveOuter) => {
data.creatures = data.creatures.map(async (pack) => {
if (pack instanceof CompendiumCollection) {
Expand Down

0 comments on commit 1cf5ddc

Please sign in to comment.