Fix division problems with face pagination
This commit is contained in:
parent
3d9ae530af
commit
9ba23041f4
|
@ -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)
|
||||
}}
|
||||
|
|
|
@ -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)
|
||||
}}
|
||||
|
|
Loading…
Reference in New Issue