mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
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:
parent
76f7c67450
commit
1284796ade
1 changed files with 3 additions and 2 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in a new issue