From 5f51c6d08eec83e43f1756c23dc9687d5258544e Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 18 Nov 2023 15:31:35 -0800 Subject: [PATCH] Fixes to spell by name --- .gitignore | 3 ++- packages/core/shared/src/nodes/io/SpellByName.ts | 8 ++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index fbaa8a0cd4..5b55a9a166 100644 --- a/.gitignore +++ b/.gitignore @@ -59,4 +59,5 @@ apps/docs/api/index.md data.json /logs docstore.json -.vercel \ No newline at end of file +.vercel +.nx \ No newline at end of file diff --git a/packages/core/shared/src/nodes/io/SpellByName.ts b/packages/core/shared/src/nodes/io/SpellByName.ts index 3cc9f3a189..37254c853e 100644 --- a/packages/core/shared/src/nodes/io/SpellByName.ts +++ b/packages/core/shared/src/nodes/io/SpellByName.ts @@ -147,9 +147,8 @@ export class SpellByName extends MagickComponent> { .get('agentCommander') .runSpellWithResponse(runComponentArgs) - const outputs = Object.values(spellOutputs as any)[0] return { - outputs, + outputs: spellOutputs, } } else { const runComponentArgs = { @@ -173,11 +172,8 @@ export class SpellByName extends MagickComponent> { const spellOutputs = await spellRunner.runComponent(runComponentArgs) - // get the first value from outputs - const outputs = Object.values(spellOutputs as any)[0] - return { - outputs, + outputs: spellOutputs, } } }