Skip to content

Commit

Permalink
Update SummoningMenu.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
MrVauxs authored Dec 25, 2023
1 parent af00724 commit 1e48bed
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 && data.creatures.some((pack) => pack instanceof CompendiumCollection)) {
} else if (Array.isArray(data.creatures) && 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 1e48bed

Please sign in to comment.