From 223f7d7ab366b5cd42deffc90c46c83a7f8c2444 Mon Sep 17 00:00:00 2001 From: Guillaume Thibault Date: Mon, 22 Apr 2024 13:41:14 -0400 Subject: [PATCH] [create-seq-form] chore: trim space in name --- .../components/modals/CreateSequenceModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx b/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx index 95abdf1d6..f91ec3bd9 100644 --- a/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx +++ b/src/renderer/routes/test_sequencer_panel/components/modals/CreateSequenceModal.tsx @@ -22,7 +22,7 @@ import { const formSchema = z.object({ name: z.string().min(1).max(50).regex(/\S/, { message: "The sequence name should not contain white spaces", - }), + }).transform(val => val.trim()), description: z.string().max(100), projectPath: z.string().min(1).regex(/\S/, { message: "The project path should not contain white spaces",