From 1e48bed206597ab48e50fe1dd16a99f297e5a02a Mon Sep 17 00:00:00 2001 From: MrVauxs Date: Mon, 25 Dec 2023 06:07:54 +0100 Subject: [PATCH] Update SummoningMenu.svelte --- src/summon/menu/SummoningMenu.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/summon/menu/SummoningMenu.svelte b/src/summon/menu/SummoningMenu.svelte index ee295be..bcd6a1f 100644 --- a/src/summon/menu/SummoningMenu.svelte +++ b/src/summon/menu/SummoningMenu.svelte @@ -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) {