Removed an invalidate onDelete + updated test (#5521)

This commit is contained in:
Alex van Andel authored and GitHub committed 2022-11-14 19:34:47 +00:00
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`);