Added error message if name is empty

This commit is contained in:
Rhythm Bhiwani
2024-03-02 09:30:03 +05:30
parent b6f3cf512e
commit 3fa529dcb0

View File

@ -72,6 +72,14 @@ function SecretRenameRow({ environments, getSecretByKey, secretKey, secretPath }
});
const handleFormSubmit = async (data: Form) => {
if (!data.key) {
createNotification({
type: "error",
text: "Secret name cannot be empty"
});
return;
}
const promises = secrets
.filter((secret) => !!secret)
.map((secret) => {