diff --git a/src/components/blocks/DetailedViewIssuanceUnitTable.js b/src/components/blocks/DetailedViewIssuanceUnitTable.js index e92b1ada..7857ea2e 100644 --- a/src/components/blocks/DetailedViewIssuanceUnitTable.js +++ b/src/components/blocks/DetailedViewIssuanceUnitTable.js @@ -60,7 +60,13 @@ const DetailedViewIssuanceUnitTable = ({ issuance }) => { ]); useEffect(() => { - dispatch(getUnits({ useMockedResponse: false, useApiMock: false })); + dispatch( + getUnits({ + additionalQuery: `orgUid=${issuance.orgUid}`, + useMockedResponse: false, + useApiMock: false, + }), + ); }, []); const handleChangePage = (event, newPage) => { diff --git a/src/store/actions/climateWarehouseActions.js b/src/store/actions/climateWarehouseActions.js index 5e267c01..53c4a872 100644 --- a/src/store/actions/climateWarehouseActions.js +++ b/src/store/actions/climateWarehouseActions.js @@ -2491,8 +2491,10 @@ export const mockUnitsResponse = { export const getUnits = options => { const url = options?.searchQuery - ? `${constants.API_HOST}/units?page=1&limit=10&search=${options.searchQuery}` - : `${constants.API_HOST}/units?page=1&limit=10&`; + ? `${constants.API_HOST}/units?page=1&limit=100&search=${options.searchQuery}` + : `${constants.API_HOST}/units?page=1&limit=100&${ + options?.additionalQuery || '' + }`; return dispatch => { dispatch(