fix user-inputs generation

This commit is contained in:
JzoNg 2024-03-20 10:45:30 +08:00
parent 9f024835aa
commit d5c79e0489

View File

@ -87,6 +87,7 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[
default: '', default: '',
}, },
} as any) } as any)
return
} }
if (item.type === 'number') { if (item.type === 'number') {
userInputs.push({ userInputs.push({
@ -124,5 +125,6 @@ export const promptVariablesToUserInputsForm = (promptVariables: PromptVariable[
} as any) } as any)
} }
}) })
return userInputs return userInputs
} }