Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/MrVauxs/foundry-summons int…
Browse files Browse the repository at this point in the history
…o main
  • Loading branch information
MrVauxs committed Jan 2, 2024
2 parents fa3aaa7 + 1f4c299 commit f6ad5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ An all-in-one solution to all your summoning needs with NO need to import Actors
Easily expandable with Hooks, and system-inclusive. Should work on any system.
Just grab the **macro** from the compendium and start summoning!

### **If you want more information, see the [wiki](https://github.com/MrVauxs/foundry-summons/wiki/Macro-Arguments)!**

Built in [Svelte](https://svelte.dev/) using [TyphonJS Framework](https://github.com/typhonjs-fvtt-lib) for Foundry.

### Hooks
Expand Down
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 (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 f6ad5f9

Please sign in to comment.