Skip to content

Commit

Permalink
Merge pull request #29 from peaklo/main
Browse files Browse the repository at this point in the history
Pack check fails if data.creatures isnt an array.
  • Loading branch information
MrVauxs authored Dec 25, 2023
2 parents cfa0803 + 1cf5ddc commit af00724
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 af00724

Please sign in to comment.