From 6023c8bad85c6f50010f1ccf7a8510ccd789be66 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sat, 30 Nov 2024 19:15:36 +0530 Subject: [PATCH] Update index.js --- .../EnvironmentSettings/CreateEnvironment/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/bruno-app/src/components/Environments/EnvironmentSettings/CreateEnvironment/index.js b/packages/bruno-app/src/components/Environments/EnvironmentSettings/CreateEnvironment/index.js index 5da85da144..95dc550c88 100644 --- a/packages/bruno-app/src/components/Environments/EnvironmentSettings/CreateEnvironment/index.js +++ b/packages/bruno-app/src/components/Environments/EnvironmentSettings/CreateEnvironment/index.js @@ -34,10 +34,7 @@ const CreateEnvironment = ({ collection, onClose }) => { toast.success('Environment created in collection'); onClose(); }) - .catch(() => { - // No action needed here. Validation for duplicate environment names is handled in the form itself. - // If an error occurs, it is already displayed near the input field (given that the error is caused because of duplicate naming). - }); + .catch(() => toast.error('An error occurred while creating the environment')); } });