From 7e19b6239018dcc9637ae8ab214b434527ecd779 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Mon, 16 Oct 2023 15:24:47 -0400 Subject: [PATCH] Don't invalidate form based on initial data --- src/pages/projectSettings/tabs/GeneralTab/getFormSchema.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/projectSettings/tabs/GeneralTab/getFormSchema.tsx b/src/pages/projectSettings/tabs/GeneralTab/getFormSchema.tsx index 76d97f8e80..3e5d7d5c92 100644 --- a/src/pages/projectSettings/tabs/GeneralTab/getFormSchema.tsx +++ b/src/pages/projectSettings/tabs/GeneralTab/getFormSchema.tsx @@ -82,7 +82,10 @@ export const getFormSchema = ( title: "Identifier", default: "", minLength: 1, - format: "noSpecialCharacters", + // Don't invalidate form based on initial data + format: identifierHasChanges + ? "noSpecialCharacters" + : "noSpaces", }, }), batchTime: {