dont close delete modal if deletion fails (#32643)

fixes #32614

quick fix to keep showing the delete certificate authority modal if
there is an error when deleting

- [x] QA'd all new/changed functionality manually
This commit is contained in:
Gabriel Hernandez 2025-09-05 14:46:09 +01:00 committed by GitHub
parent 76f7c67450
commit 1284796ade
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,14 +29,15 @@ const DeleteCertificateAuthorityModal = ({
"success",
"Successfully deleted your certificate authority."
);
setIsUpdating(false);
onExit();
} catch (e) {
setIsUpdating(false);
renderFlash(
"error",
"Couldn't delete certificate authority. Please try again."
);
}
setIsUpdating(false);
onExit();
};
return (