From 1f7da35841f44c4e1c51fc5e1acf8749e31b2574 Mon Sep 17 00:00:00 2001 From: Leo Kewitz Date: Wed, 8 Jan 2025 13:57:28 +0100 Subject: [PATCH] refact: drop costly ALL orders totalCount query (#10895) --- .../dashboard/sections/contributions/Contributions.tsx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/components/dashboard/sections/contributions/Contributions.tsx b/components/dashboard/sections/contributions/Contributions.tsx index 420a9349efc..7b426bca89c 100644 --- a/components/dashboard/sections/contributions/Contributions.tsx +++ b/components/dashboard/sections/contributions/Contributions.tsx @@ -129,14 +129,7 @@ const dashboardContributionsMetadataQuery = gql` hostFeePercent } } - ALL: orders( - filter: $filter - expectedFundsFilter: $expectedFundsFilter - includeHostedAccounts: $includeHostedAccounts - includeChildrenAccounts: $includeChildrenAccounts - ) { - totalCount - } + PENDING: orders( filter: $filter expectedFundsFilter: $expectedFundsFilter @@ -622,7 +615,6 @@ const Contributions = ({ { id: ContributionsTab.ALL, label: intl.formatMessage({ defaultMessage: 'All', id: 'zQvVDJ' }), - count: metadata?.account?.ALL.totalCount, filter: { ...(onlyExpectedFunds ? { expectedFundsFilter: ExpectedFundsFilter.ALL_EXPECTED_FUNDS } : {}), },