From b6307875ddcf813f3051fba8215995bd01ab13fc Mon Sep 17 00:00:00 2001 From: Fu Diwei Date: Wed, 25 Jun 2025 11:38:48 +0800 Subject: [PATCH] fix: #819 --- ui/src/components/access/AccessFormCacheFlyConfig.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ui/src/components/access/AccessFormCacheFlyConfig.tsx b/ui/src/components/access/AccessFormCacheFlyConfig.tsx index 4d5d4862..b8c70f02 100644 --- a/ui/src/components/access/AccessFormCacheFlyConfig.tsx +++ b/ui/src/components/access/AccessFormCacheFlyConfig.tsx @@ -25,10 +25,7 @@ const AccessFormCacheFlyConfig = ({ form: formInst, formName, disabled, initialV const { t } = useTranslation(); const formSchema = z.object({ - apiToken: z - .string() - .min(1, t("access.form.cachefly_api_token.placeholder")) - .max(64, t("common.errmsg.string_max", { max: 64 })), + apiToken: z.string().nonempty(t("access.form.cachefly_api_token.placeholder")), }); const formRule = createSchemaFieldRule(formSchema);