mirror of
https://github.com/portainer/portainer.git
synced 2025-08-03 04:45:21 +02:00
fix(ui/datatables): sync page count with filtering [EE-5890] (#10010)
This commit is contained in:
parent
bb646162d1
commit
5586910e9d
19 changed files with 78 additions and 63 deletions
|
@ -24,8 +24,6 @@ export function Datatable() {
|
|||
search: tableState.search,
|
||||
});
|
||||
|
||||
const pageCount = Math.ceil(totalCount / tableState.pageSize);
|
||||
|
||||
return (
|
||||
<GenericDatatable
|
||||
settingsManager={tableState}
|
||||
|
@ -37,10 +35,10 @@ export function Datatable() {
|
|||
<TableActions selectedRows={selectedRows} />
|
||||
)}
|
||||
isLoading={isLoading}
|
||||
totalCount={totalCount}
|
||||
pageCount={pageCount}
|
||||
isServerSidePagination
|
||||
page={page}
|
||||
onPageChange={setPage}
|
||||
totalCount={totalCount}
|
||||
description={<Filter />}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue