frontend: Fix page numbering using comma values at some point (fix #76)
This commit is contained in:
parent
fb8e622d7c
commit
94dae5e88a
|
@ -58,7 +58,7 @@ function TrackList({privateTracks}: {privateTracks: boolean}) {
|
|||
|
||||
const {tracks, tracksCount} = data || {tracks: [], tracksCount: 0}
|
||||
const loading = !data
|
||||
const totalPages = tracksCount / pageSize
|
||||
const totalPages = Math.ceil(tracksCount / pageSize)
|
||||
|
||||
return (
|
||||
<div>
|
||||
|
|
Loading…
Reference in a new issue