fix: toast alert inconsistency (#2730)

This commit is contained in:
sabith-tu
2023-11-08 20:37:47 +05:30
committed by GitHub
parent 20fb79567f
commit 931f9d288a
3 changed files with 18 additions and 1 deletions

View File

@@ -45,6 +45,11 @@ export const DeleteModuleModal: React.FC<Props> = observer((props) => {
.then(() => {
if (moduleId) router.push(`/${workspaceSlug}/projects/${data.project}/modules`);
handleClose();
setToastAlert({
type: "success",
title: "Success!",
message: "Module deleted successfully.",
});
})
.catch(() => {
setToastAlert({