diff --git a/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProviderSamWAF.tsx b/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProviderSamWAF.tsx
index 51bc9f0f9..5bbacd10d 100644
--- a/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProviderSamWAF.tsx
+++ b/ui/src/components/workflow/designer/forms/BizDeployNodeConfigFieldsProviderSamWAF.tsx
@@ -52,7 +52,7 @@ const BizDeployNodeConfigFieldsProviderSamWAF = () => {
rules={[formRule]}
tooltip={}
>
-
+
>
@@ -71,13 +71,13 @@ const getSchema = ({ i18n = getI18n() }: { i18n?: ReturnType })
return z
.object({
deployTarget: z.enum([DEPLOY_TARGET_CERTIFICATE]),
- certificateId: z.union([z.string(), z.int().positive()]).nullish(),
+ certificateId: z.string().nullish(),
})
.superRefine((values, ctx) => {
switch (values.deployTarget) {
case DEPLOY_TARGET_CERTIFICATE:
{
- const scCertificateId = z.coerce.number().int().positive();
+ const scCertificateId = z.guid();
const spCertificateId = scCertificateId.safeParse(values.certificateId);
if (!spCertificateId.success) {
ctx.addIssue({