Skip to content

Commit

Permalink
call function in $ arg
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jun 10, 2024
1 parent 9f87637 commit fa57446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/promptdom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ async function resolvePromptNode(
const resolvedArgs: any[] = []
for (const arg of args) {
let resolvedArg = await arg
if (typeof resolvedArg === "function")
resolvedArg = resolvedArg()
// render objects
if (
typeof resolvedArg === "object" ||
Expand Down

0 comments on commit fa57446

Please sign in to comment.