Skip to content

Commit 9ee06b4

Browse files
fix: Teams list not getting refreshed after adding a new team (calcom#23881)
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
1 parent 76ced2d commit 9ee06b4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/features/ee/teams/components/CreateANewTeamForm.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { DialogFooter } from "@calcom/ui/components/dialog";
1313
import { Form } from "@calcom/ui/components/form";
1414
import { TextField } from "@calcom/ui/components/form";
1515
import { revalidateEventTypesList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/event-types/actions";
16+
import { revalidateTeamsList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/teams/actions";
1617

1718
import { useOrgBranding } from "../../organizations/context/provider";
1819
import { subdomainSuffix } from "../../organizations/lib/orgDomains";
@@ -44,6 +45,7 @@ export const CreateANewTeamForm = (props: CreateANewTeamFormProps) => {
4445
onSuccess: async (data) => {
4546
await utils.viewer.eventTypes.getUserEventGroups.invalidate();
4647
revalidateEventTypesList();
48+
revalidateTeamsList();
4749
onSuccess(data);
4850
},
4951

0 commit comments

Comments
 (0)