From 674380bd8e957c2e536164edf330a9673160c6ac Mon Sep 17 00:00:00 2001 From: wano <55907021+wanlce@users.noreply.github.com> Date: Sun, 22 Dec 2024 00:34:16 +0800 Subject: [PATCH] fix(import): cannot import node --- src/components/ImportResourceFormModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ImportResourceFormModal.tsx b/src/components/ImportResourceFormModal.tsx index 1a63c864..c85f52d9 100644 --- a/src/components/ImportResourceFormModal.tsx +++ b/src/components/ImportResourceFormModal.tsx @@ -12,8 +12,8 @@ const schema = z.object({ .array( z.object({ id: z.string(), - link: z.string().url().nonempty(), - tag: z.string().nonempty(), + link: z.string(), + tag: z.string().min(1), }), ) .nonempty(),