dont pass attribues and facetedTeamValues for platform (#21508)

This commit is contained in:
Rajiv Sahal authored and GitHub committed 2025-05-25 22:17:42 +00:00
1 parent bda963b851
commit 999882b795
3 files changed
+7 -23

No files matched your search

@@ -2,7 +2,6 @@ import { createRouterCaller } from "app/_trpc/context";
import { _generateMetadata } from "app/_utils";
import PlatformMembersView from "@calcom/features/ee/platform/pages/settings/members";
import { attributesRouter } from "@calcom/trpc/server/routers/viewer/attributes/_router";
import { viewerOrganizationsRouter } from "@calcom/trpc/server/routers/viewer/organizations/_router";
export const generateMetadata = async () =>
@@ -15,25 +14,10 @@ export const generateMetadata = async () =>
);
const ServerPageWrapper = async () => {
const [orgCaller, attributesCaller] = await Promise.all([
createRouterCaller(viewerOrganizationsRouter),
createRouterCaller(attributesRouter),
]);
const [org, teams, facetedTeamValues, attributes] = await Promise.all([
orgCaller.listCurrent(),
orgCaller.getTeams(),
orgCaller.getFacetedValues(),
attributesCaller.list(),
]);
const [orgCaller] = await Promise.all([createRouterCaller(viewerOrganizationsRouter)]);
const [org, teams] = await Promise.all([orgCaller.listCurrent(), orgCaller.getTeams()]);
return (
<PlatformMembersView
org={org}
teams={teams}
facetedTeamValues={facetedTeamValues}
attributes={attributes}
/>
);
return <PlatformMembersView org={org} teams={teams} />;
};
export default ServerPageWrapper;