mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
fix: string type
This commit is contained in:
@ -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') {
|
||||||
|
|||||||
Reference in New Issue
Block a user