Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop authored Nov 30, 2024
1 parent b9230ad commit 6023c8b
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
});

Expand Down

0 comments on commit 6023c8b

Please sign in to comment.