Skip to content

bug: variable/resource not parsed when write in nested generate input box and can't concat to #7253

@androidfans

Description

@androidfans

Describe the bug

  1. write variable in string nested in an array, the script received $var:f/Narration/jina_api_key but not real value
  2. not found a way to concat variable/resource with a string in genrated UI

To reproduce

interface Header {
  value: string;
}

export async function main(
  key: string,
  header: Header,
  headers: Header[],
) {
  console.log(`key: ${url}`);
  console.log(`Header: ${header.value}`);
  console.log(`HeaderArray: ${headers[0].value}`)
}

write variable in generated UI

Expected behavior

script received actual value

Screenshots

Image

Browser information

No response

Application version

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions