Skip to content

Commit

Permalink
Update query key
Browse files Browse the repository at this point in the history
  • Loading branch information
jaalah committed Feb 12, 2024
1 parent 3e8efc4 commit a06f38a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const ChildAccountList = React.memo(
queryClient.invalidateQueries([
accountQueryKey,
'childAccounts',
'paginated',
'infinite',
]);
refetchChildAccounts();
}}
Expand Down
2 changes: 1 addition & 1 deletion packages/manager/src/queries/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const useChildAccountsInfiniteQuery = ({
hasExplicitAuthToken;

return useInfiniteQuery<ResourcePage<Account>, APIError[]>(
[queryKey, 'childAccounts', 'paginated', params, filter],
[queryKey, 'childAccounts', 'infinite', params, filter],
({ pageParam }) =>
getChildAccounts({
filter,
Expand Down

0 comments on commit a06f38a

Please sign in to comment.