mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
fix(trigger): deal with empty manualPropertiesSchema
This commit is contained in:
parent
3d5e2c5ca1
commit
f4acc78f66
@ -301,12 +301,14 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (createType !== SupportedCreationMethods.MANUAL) {
|
if (createType !== SupportedCreationMethods.MANUAL) {
|
||||||
const autoCommonParametersFormValues = autoCommonParametersFormRef.current?.getFormValues({}) || defaultFormValues
|
if (autoCommonParametersSchema.length > 0) {
|
||||||
if (!autoCommonParametersFormValues?.isCheckValidated)
|
const autoCommonParametersFormValues = autoCommonParametersFormRef.current?.getFormValues({}) || defaultFormValues
|
||||||
return
|
if (!autoCommonParametersFormValues?.isCheckValidated)
|
||||||
params.parameters = autoCommonParametersFormValues.values
|
return
|
||||||
|
params.parameters = autoCommonParametersFormValues.values
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else if (manualPropertiesSchema.length > 0) {
|
||||||
const manualFormValues = manualPropertiesFormRef.current?.getFormValues({}) || defaultFormValues
|
const manualFormValues = manualPropertiesFormRef.current?.getFormValues({}) || defaultFormValues
|
||||||
if (!manualFormValues?.isCheckValidated)
|
if (!manualFormValues?.isCheckValidated)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user