From a06f38a75924d8ab7d6418cf42f741f6ae51063c Mon Sep 17 00:00:00 2001 From: Jaalah Ramos Date: Mon, 12 Feb 2024 14:37:26 -0500 Subject: [PATCH] Update query key --- .../src/features/Account/SwitchAccounts/ChildAccountList.tsx | 2 +- packages/manager/src/queries/account.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/manager/src/features/Account/SwitchAccounts/ChildAccountList.tsx b/packages/manager/src/features/Account/SwitchAccounts/ChildAccountList.tsx index dd48d1678db..3f9075bb849 100644 --- a/packages/manager/src/features/Account/SwitchAccounts/ChildAccountList.tsx +++ b/packages/manager/src/features/Account/SwitchAccounts/ChildAccountList.tsx @@ -81,7 +81,7 @@ export const ChildAccountList = React.memo( queryClient.invalidateQueries([ accountQueryKey, 'childAccounts', - 'paginated', + 'infinite', ]); refetchChildAccounts(); }} diff --git a/packages/manager/src/queries/account.ts b/packages/manager/src/queries/account.ts index 82e1a3e2f4a..e18ff88aff4 100644 --- a/packages/manager/src/queries/account.ts +++ b/packages/manager/src/queries/account.ts @@ -89,7 +89,7 @@ export const useChildAccountsInfiniteQuery = ({ hasExplicitAuthToken; return useInfiniteQuery, APIError[]>( - [queryKey, 'childAccounts', 'paginated', params, filter], + [queryKey, 'childAccounts', 'infinite', params, filter], ({ pageParam }) => getChildAccounts({ filter,