From ddc8c62b21a4976e25a97dfd96635fc5589025f5 Mon Sep 17 00:00:00 2001 From: Paul Maskelyne Date: Mon, 13 May 2024 12:53:21 +0100 Subject: [PATCH] fix spellbook --- system/src/apps/SpellBookSD.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/src/apps/SpellBookSD.mjs b/system/src/apps/SpellBookSD.mjs index 96915982..b0927f0d 100644 --- a/system/src/apps/SpellBookSD.mjs +++ b/system/src/apps/SpellBookSD.mjs @@ -65,7 +65,9 @@ export default class SpellBookSD extends FormApplication { const spells = await shadowdark.compendiums.classSpellBook(this.classID); // group spells by tier - this.data.spellList = Object.groupBy(spells, ({system}) => system.tier); + this.data.spellList = Object.groupBy( + Array.from(spells.values()), ({system}) => system.tier + ); return this.data; }