Skip to content

Commit 60f02ee

Browse files
authored
Fixed the pagination at bed management page (ohcnetwork#8928)
1 parent c62b36d commit 60f02ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Facility/BedManagement.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ const BedCard = ({
164164

165165
export const BedManagement = (props: BedManagementProps) => {
166166
const { facilityId, locationId } = props;
167-
const { qParams, resultsPerPage } = useFilters({});
167+
const { qParams, resultsPerPage } = useFilters({ limit: 16 });
168168
const { t } = useTranslation();
169169

170170
const { data: location } = useQuery(routes.getFacilityAssetLocation, {
@@ -178,10 +178,10 @@ export const BedManagement = (props: BedManagementProps) => {
178178
<PaginatedList
179179
route={routes.listFacilityBeds}
180180
pathParams={{ facility_external_id: facilityId }}
181+
perPage={resultsPerPage}
181182
query={{
182183
facility: facilityId,
183184
location: locationId,
184-
limit: resultsPerPage,
185185
offset: (qParams.page ? qParams.page - 1 : 0) * resultsPerPage,
186186
}}
187187
>

0 commit comments

Comments
 (0)