fix: workspace joining state fix (#780)

This commit is contained in:
Anmol Singh Bhatia 2023-04-11 17:13:06 +05:30 committed by GitHub
parent cfa283116b
commit d5c2965946
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,11 +28,11 @@ export const JoinProject: React.FC = () => {
project_ids: [projectId as string],
})
.then(() => {
setIsJoiningProject(false);
mutate(PROJECT_MEMBERS(projectId as string));
})
.catch((err) => {
console.error(err);
setIsJoiningProject(false);
});
};