diff --git a/packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx b/packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx index 00649f232..1cb7fd1c5 100644 --- a/packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx +++ b/packages/esm-bed-management-app/src/bed-administration/bed-administration-table.component.tsx @@ -72,7 +72,7 @@ const BedAdministrationTable: React.FC = () => { const { results, currentPage, totalPages, goTo } = usePagination( filterOption === 'ALL' ? bedsGroupedByLocation - : bedsGroupedByLocation.filter((bed) => bed.status === filterOption) ?? [], + : bedsGroupedByLocation.flat().filter((bed) => bed.status === filterOption) ?? [], pageSize, );