From 6c49a7db004e015023e0f046e1ded51fd278c479 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 26 Jul 2024 11:12:56 -0700 Subject: [PATCH] Fix subspell compatability --- packages/server/grimoire/src/lib/nodes/subspells/subspell.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/grimoire/src/lib/nodes/subspells/subspell.ts b/packages/server/grimoire/src/lib/nodes/subspells/subspell.ts index 7765c3715..4c83e7239 100644 --- a/packages/server/grimoire/src/lib/nodes/subspells/subspell.ts +++ b/packages/server/grimoire/src/lib/nodes/subspells/subspell.ts @@ -97,7 +97,7 @@ export const runSubspell = makeMagickAsyncNodeDefinition({ const spellName = configuration.spellName const spellId = configuration.spellId - if (!spellId || !spellName) { + if (!spellId && !spellName) { throw new Error('No spellId or spellName provided') }