Skip to content

Commit b06ea30

Browse files
maknopjosejulio
andauthored
[SPUR] Number of items are updated with filtering (#153)
* Fixed page issue * Update src/pages/LandingPage.tsx --------- Co-authored-by: Josejulio Martínez <[email protected]>
1 parent 396c8b5 commit b06ea30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pages/LandingPage.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import {
44
Form,
55
Page,
66
PageSection,
7-
PageSectionVariants, Pagination, PaginationProps,
7+
PageSectionVariants,
8+
Pagination,
9+
PaginationProps,
810
Sidebar,
911
SidebarContent,
1012
SidebarPanel, Split, SplitItem,
@@ -77,7 +79,7 @@ export const LandingPage: FunctionComponent = () => {
7779

7880
// For some reason the type doesn't like 'ref'.
7981
const basePaginationProps: Omit<PaginationProps, 'ref'> = {
80-
itemCount: pagination.count,
82+
itemCount: filteredDocs.length,
8183
perPage: pagination.perPage,
8284
page: pagination.page,
8385
onSetPage: (_event, page) => pagination.onSetPage(page),

0 commit comments

Comments
 (0)