Преглед на файлове

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

tags/0.6.1
Joel преди 1 година
родител
ревизия
8bb225bec6
No account linked to committer's email address
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3
    0
      web/utils/model-config.ts

+ 3
- 0
web/utils/model-config.ts Целия файл

@@ -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…
Отказ
Запис