From 831aa72d23c62e1c968680b0468f47ba358ce045 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 1 Feb 2023 21:23:34 +0000 Subject: [PATCH] Invalidate hasTeamPlan when the last team is removed (#6837) --- packages/features/ee/teams/components/TeamList.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/features/ee/teams/components/TeamList.tsx b/packages/features/ee/teams/components/TeamList.tsx index 6f66771996..e9c9d45ea9 100644 --- a/packages/features/ee/teams/components/TeamList.tsx +++ b/packages/features/ee/teams/components/TeamList.tsx @@ -29,6 +29,7 @@ export default function TeamList(props: Props) { const deleteTeamMutation = trpc.viewer.teams.delete.useMutation({ async onSuccess() { await utils.viewer.teams.list.invalidate(); + await utils.viewer.teams.hasTeamPlan.invalidate(); }, async onError(err) { showToast(err.message, "error");