From 8f0d476cd90b90c8df2e2158b53c0ebd9ac24d32 Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Tue, 26 Dec 2023 11:35:12 +0100 Subject: [PATCH] enhance app name validation --- agenta-web/src/components/AppSelector/AppSelector.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/agenta-web/src/components/AppSelector/AppSelector.tsx b/agenta-web/src/components/AppSelector/AppSelector.tsx index e32e2b1b69..cca4ebfe6d 100644 --- a/agenta-web/src/components/AppSelector/AppSelector.tsx +++ b/agenta-web/src/components/AppSelector/AppSelector.tsx @@ -246,7 +246,8 @@ const AppSelector: React.FC = () => { } const appNameExist = useMemo( - () => apps.some((app: GenericObject) => app.app_name === newApp), + () => + apps.some((app: GenericObject) => app.app_name.toLowerCase() === newApp.toLowerCase()), [apps, newApp], )