fix: code-based extension (#2490)
This commit is contained in:
parent
eedbe1b770
commit
297d0f1f30
5 changed files with 29 additions and 28 deletions
|
|
@ -42,7 +42,7 @@ export const useCheckPromptVariables = () => {
|
|||
} = promptVariablesConfig
|
||||
let hasEmptyInput = ''
|
||||
const requiredVars = promptVariables.filter(({ key, name, required, type }) => {
|
||||
if (type === 'api')
|
||||
if (type !== 'string' && type !== 'paragraph' && type !== 'select')
|
||||
return false
|
||||
const res = (!key || !key.trim()) || (!name || !name.trim()) || (required || required === undefined || required === null)
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue