From 0cab41a94bf70dc037a2b1d08e360a6fce572303 Mon Sep 17 00:00:00 2001 From: SupaJoon Date: Mon, 16 Oct 2023 16:19:23 -0400 Subject: [PATCH] EVG-20817: Don't invalidate General project settings form based on initial project identifier (#2104) --- 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: {