fix: number type in app would render as select type in webapp (#3244)

This commit is contained in:
Joel 2024-04-09 18:33:47 +08:00 committed by GitHub
parent 39d3fc4742
commit 8bb225bec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,6 +15,9 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
if (item['text-input'])
return ['string', item['text-input']]
if (item.number)
return ['number', item.number]
if (item.external_data_tool)
return [item.external_data_tool.type, item.external_data_tool]