mirror of https://github.com/langgenius/dify.git
fix: object label not pass the right value
This commit is contained in:
parent
6fea18b4d0
commit
a42f26d857
|
|
@ -58,7 +58,7 @@ const BeforeRunForm: FC<BeforeRunFormProps> = ({
|
|||
form.inputs.forEach((input) => {
|
||||
const value = form.values[input.variable]
|
||||
if (!errMsg && input.required && (value === '' || value === undefined || value === null || (input.type === InputVarType.files && value.length === 0)))
|
||||
errMsg = t('workflow.errorMsg.fieldRequired', { field: input.label })
|
||||
errMsg = t('workflow.errorMsg.fieldRequired', { field: typeof input.label === 'object' ? input.label.variable : input.label })
|
||||
})
|
||||
})
|
||||
if (errMsg) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue