fix user-inputs generation

This commit is contained in:
JzoNg 2024-03-20 10:45:30 +08:00
parent 9f024835aa
commit d5c79e0489
1 changed files with 2 additions and 0 deletions

View File

@ -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
}