mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-10 03:16:51 +08:00
fix: number type in app would render as select type in webapp (#3244)
This commit is contained in:
@@ -15,6 +15,9 @@ export const userInputsFormToPromptVariables = (useInputs: UserInputFormItem[] |
|
|||||||
if (item['text-input'])
|
if (item['text-input'])
|
||||||
return ['string', item['text-input']]
|
return ['string', item['text-input']]
|
||||||
|
|
||||||
|
if (item.number)
|
||||||
|
return ['number', item.number]
|
||||||
|
|
||||||
if (item.external_data_tool)
|
if (item.external_data_tool)
|
||||||
return [item.external_data_tool.type, item.external_data_tool]
|
return [item.external_data_tool.type, item.external_data_tool]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user