Skip to content

Commit

Permalink
fix spellbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Muttley committed May 13, 2024
1 parent b982a63 commit ddc8c62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/src/apps/SpellBookSD.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ddc8c62

Please sign in to comment.