Skip to content

Commit

Permalink
OS-7883: Fix shouldInvoke calculation in useGetAvailablePools
Browse files Browse the repository at this point in the history
Include additional parameters in useApiState to correctly calculate the paramsUpdated parameter
  • Loading branch information
ek-hystax authored Oct 3, 2024
1 parent b0c2699 commit 2f97d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ngui/ui/src/services/PoolsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export const useGetAvailablePools = (params) => {
apiData: { pools = [] }
} = useApiData(GET_AVAILABLE_POOLS);

const { isLoading, shouldInvoke, isDataReady } = useApiState(GET_AVAILABLE_POOLS, { organizationId });
const { isLoading, shouldInvoke, isDataReady } = useApiState(GET_AVAILABLE_POOLS, { ...params, organizationId });

useEffect(() => {
if (shouldInvoke) {
Expand Down

0 comments on commit 2f97d3a

Please sign in to comment.