fix(frontend): make totalPages in user page reactive
This commit is contained in:
parent
c866cbb939
commit
e98d86bd2e
|
@ -50,7 +50,8 @@
|
|||
let memberPage = 0;
|
||||
let memberSlice: PartialMember[] = [];
|
||||
$: memberSlice = data.members.slice(memberPage * 20, (memberPage + 1) * 20);
|
||||
const totalPages = Math.ceil(data.members.length / 20);
|
||||
let totalPages: number;
|
||||
$: totalPages = Math.ceil(data.members.length / 20);
|
||||
|
||||
const prevPage = () => {
|
||||
if (memberPage === 0) {
|
||||
|
|
Loading…
Reference in New Issue