1
Fork 0

Fix division problems with face pagination

This commit is contained in:
viktorstrate 2021-03-04 09:54:04 +01:00
parent 3d9ae530af
commit 9ba23041f4
No known key found for this signature in database
GPG Key ID: 3F855605109C1E8A
2 changed files with 2 additions and 2 deletions

View File

@ -103,7 +103,7 @@ const SelectFaceGroupTable = ({
// nextItem={null}
// prevItem={null}
activePage={page + 1}
totalPages={rows.length / PAGE_SIZE}
totalPages={Math.ceil(rows.length / PAGE_SIZE)}
onPageChange={(_, { activePage }) => {
setPage(Math.ceil(activePage) - 1)
}}

View File

@ -108,7 +108,7 @@ const SelectImageFacesTable = ({
// nextItem={null}
// prevItem={null}
activePage={page + 1}
totalPages={rows.length / PAGE_SIZE}
totalPages={Math.ceil(rows.length / PAGE_SIZE)}
onPageChange={(_, { activePage }) => {
setPage(Math.ceil(activePage) - 1)
}}