fix: string type
This commit is contained in:
parent
9a7e1be35d
commit
e9923e8220
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
|
||||||
useInputs.forEach((item: any) => {
|
useInputs.forEach((item: any) => {
|
||||||
const [type, content] = (() => {
|
const [type, content] = (() => {
|
||||||
const type = Object.keys(item)[0]
|
const type = Object.keys(item)[0]
|
||||||
return [type, item[type]]
|
return [type === 'text-input' ? 'string' : type, item[type]]
|
||||||
})()
|
})()
|
||||||
|
|
||||||
if (type === 'string' || type === 'paragraph' || type === 'file' || type === 'file-list') {
|
if (type === 'string' || type === 'paragraph' || type === 'file' || type === 'file-list') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue