From d5c79e0489fa600bae8ac36e8dbbe358a656c90e Mon Sep 17 00:00:00 2001 From: JzoNg Date: Wed, 20 Mar 2024 10:45:30 +0800 Subject: [PATCH] fix user-inputs generation --- web/utils/model-config.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/utils/model-config.ts b/web/utils/model-config.ts index b54b5f284e..949b78109e 100644 --- a/web/utils/model-config.ts +++ b/web/utils/model-config.ts @@ -87,6 +87,7 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[ default: '', }, } as any) + return } if (item.type === 'number') { userInputs.push({ @@ -124,5 +125,6 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[ } as any) } }) + return userInputs }