Skip to content

Commit

Permalink
Fixed the pagination at bed management page (ohcnetwork#8928)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 authored Oct 25, 2024
1 parent c62b36d commit 60f02ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Facility/BedManagement.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ const BedCard = ({

export const BedManagement = (props: BedManagementProps) => {
const { facilityId, locationId } = props;
const { qParams, resultsPerPage } = useFilters({});
const { qParams, resultsPerPage } = useFilters({ limit: 16 });
const { t } = useTranslation();

const { data: location } = useQuery(routes.getFacilityAssetLocation, {
Expand All @@ -178,10 +178,10 @@ export const BedManagement = (props: BedManagementProps) => {
<PaginatedList
route={routes.listFacilityBeds}
pathParams={{ facility_external_id: facilityId }}
perPage={resultsPerPage}
query={{
facility: facilityId,
location: locationId,
limit: resultsPerPage,
offset: (qParams.page ? qParams.page - 1 : 0) * resultsPerPage,
}}
>
Expand Down

0 comments on commit 60f02ee

Please sign in to comment.