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

pull/3249/head
Joel 2 years ago committed by GitHub
parent 39d3fc4742
commit 8bb225bec6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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]

Loading…
Cancel
Save