fix: Teams list not getting refreshed after adding a new team (#23881)

Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
Anwar SadathandAnik Dhabal Babu authored and GitHub committed 2025-09-17 10:09:37 +00:00
1 parent 76ced2d3b8
commit 9ee06b410e
1 file changed
+2
@@ -13,6 +13,7 @@ import { DialogFooter } from "@calcom/ui/components/dialog";
import { Form } from "@calcom/ui/components/form";
import { TextField } from "@calcom/ui/components/form";
import { revalidateEventTypesList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/event-types/actions";
import { revalidateTeamsList } from "@calcom/web/app/(use-page-wrapper)/(main-nav)/teams/actions";
import { useOrgBranding } from "../../organizations/context/provider";
import { subdomainSuffix } from "../../organizations/lib/orgDomains";
@@ -44,6 +45,7 @@ export const CreateANewTeamForm = (props: CreateANewTeamFormProps) => {
onSuccess: async (data) => {
await utils.viewer.eventTypes.getUserEventGroups.invalidate();
revalidateEventTypesList();
revalidateTeamsList();
onSuccess(data);
},