소스 검색

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

Joel 1 년 전
부모
커밋
8bb225bec6
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]