Removed an invalidate onDelete + updated test (#5521)
This commit is contained in:
1 parent
7beb17c007
commit
1edc9c50d5
2 files changed
+4
-6
No files matched your search
@@ -71,7 +71,6 @@ const ProfileView = () => {
|
||||
|
||||
const deleteTeamMutation = trpc.viewer.teams.delete.useMutation({
|
||||
async onSuccess() {
|
||||
await utils.viewer.teams.get.invalidate();
|
||||
await utils.viewer.teams.list.invalidate();
|
||||
showToast(t("your_team_disbanded_successfully"), "success");
|
||||
router.push(`${WEBAPP_URL}/teams`);
|
||||
|
||||
Reference in new issue
Block a user