forked from github/plane
chore: redirection to profile after workpace delete/leave (#2937)
This commit is contained in:
committed by
sriram veeraghanta
parent
a477161fca
commit
c2b90df498
@@ -40,14 +40,8 @@ const useUserAuth = (routeAuth: "sign-in" | "onboarding" | "admin" | null = "adm
|
||||
router.push(`/${userWorkspaces[0].slug}`);
|
||||
return;
|
||||
} else {
|
||||
const invitations = await workspaceService.userWorkspaceInvitations();
|
||||
if (invitations.length > 0) {
|
||||
router.push(`/invitations`);
|
||||
return;
|
||||
} else {
|
||||
router.push(`/create-workspace`);
|
||||
return;
|
||||
}
|
||||
router.push(`/profile`);
|
||||
return;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user