From f4acc78f66b9eacdf247d5cebd06071b6e5f0892 Mon Sep 17 00:00:00 2001 From: yessenia Date: Tue, 21 Oct 2025 19:49:42 +0800 Subject: [PATCH] fix(trigger): deal with empty manualPropertiesSchema --- .../subscription-list/create/common-modal.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx index 7952d92ab2..bc6572ba1f 100644 --- a/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx +++ b/web/app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.tsx @@ -301,12 +301,14 @@ export const CommonCreateModal = ({ onClose, createType, builder }: Props) => { } if (createType !== SupportedCreationMethods.MANUAL) { - const autoCommonParametersFormValues = autoCommonParametersFormRef.current?.getFormValues({}) || defaultFormValues - if (!autoCommonParametersFormValues?.isCheckValidated) - return - params.parameters = autoCommonParametersFormValues.values + if (autoCommonParametersSchema.length > 0) { + const autoCommonParametersFormValues = autoCommonParametersFormRef.current?.getFormValues({}) || defaultFormValues + if (!autoCommonParametersFormValues?.isCheckValidated) + return + params.parameters = autoCommonParametersFormValues.values + } } - else { + else if (manualPropertiesSchema.length > 0) { const manualFormValues = manualPropertiesFormRef.current?.getFormValues({}) || defaultFormValues if (!manualFormValues?.isCheckValidated) return