From ee531dd186fbb12470e0225cf0a3963e93c0a1f6 Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Thu, 24 Oct 2024 20:49:51 +0800 Subject: [PATCH] fix: aliyun oss deploy config validation error --- ui/src/components/certimate/DeployToAliyunOSS.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/certimate/DeployToAliyunOSS.tsx b/ui/src/components/certimate/DeployToAliyunOSS.tsx index 160cd5a6..ea110cde 100644 --- a/ui/src/components/certimate/DeployToAliyunOSS.tsx +++ b/ui/src/components/certimate/DeployToAliyunOSS.tsx @@ -32,11 +32,11 @@ const DeployToAliyunOSS = () => { }, [data]); useEffect(() => { - const bucketResp = bucketSchema.safeParse(data.config?.domain); - if (!bucketResp.success) { + const resp = bucketSchema.safeParse(data.config?.bucket); + if (!resp.success) { setError({ ...error, - bucket: JSON.parse(bucketResp.error.message)[0].message, + bucket: JSON.parse(resp.error.message)[0].message, }); } else { setError({