Skip to content

Commit

Permalink
Fixes to spell by name
Browse files Browse the repository at this point in the history
  • Loading branch information
parzival418 committed Nov 18, 2023
1 parent 9e9b124 commit 5f51c6d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,5 @@ apps/docs/api/index.md
data.json
/logs
docstore.json
.vercel
.vercel
.nx
8 changes: 2 additions & 6 deletions packages/core/shared/src/nodes/io/SpellByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ export class SpellByName extends MagickComponent<Promise<ModuleWorkerOutput>> {
.get('agentCommander')
.runSpellWithResponse(runComponentArgs)

const outputs = Object.values(spellOutputs as any)[0]
return {
outputs,
outputs: spellOutputs,
}
} else {
const runComponentArgs = {
Expand All @@ -173,11 +172,8 @@ export class SpellByName extends MagickComponent<Promise<ModuleWorkerOutput>> {

const spellOutputs = await spellRunner.runComponent(runComponentArgs)

// get the first value from outputs
const outputs = Object.values(spellOutputs as any)[0]

return {
outputs,
outputs: spellOutputs,
}
}
}
Expand Down

0 comments on commit 5f51c6d

Please sign in to comment.