mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
handeling the export fail
This commit is contained in:
parent
a1f0b9c253
commit
b84ca669c6
@ -64,6 +64,7 @@ export const Exporter: React.FC<Props> = ({
|
||||
.then(() => {
|
||||
mutateServices();
|
||||
router.push(`/${workspaceSlug}/settings/export`);
|
||||
setExportLoading(false);
|
||||
setToastAlert({
|
||||
type: "success",
|
||||
title: "Export Successful",
|
||||
@ -78,13 +79,14 @@ export const Exporter: React.FC<Props> = ({
|
||||
} from the previous export.`,
|
||||
});
|
||||
})
|
||||
.catch(() =>
|
||||
.catch(() => {
|
||||
setExportLoading(false);
|
||||
setToastAlert({
|
||||
type: "error",
|
||||
title: "Error!",
|
||||
message: "Export was unsuccessful. Please try again.",
|
||||
})
|
||||
);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user