fixed infinite loading in dashboard

This commit is contained in:
Animesh Das
2023-02-17 00:31:00 +05:30
parent da857f321b
commit 3e0d4cb70a
2 changed files with 6 additions and 0 deletions
@@ -123,6 +123,9 @@ export const ProjectSettingsPage = () => {
await deleteWorkspace.mutateAsync({ workspaceID });
// redirect user to first workspace user is part of
const ws = workspaces.find(({ _id }) => _id !== workspaceID);
if(!ws){
router.push("/noprojects");
}
router.push(`/dashboard/${ws?._id}`);
createNotification({
text: 'Successfully deleted workspace',