mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 18:49:00 +01:00
fix(react/collections): pagination displayed when not needed
This commit is contained in:
parent
5cf18ae17c
commit
566ffbdde2
@ -15,7 +15,7 @@ interface PaginationContext {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit<PaginationContext, "pageNotes">) {
|
export function Pager({ page, pageSize, setPage, pageCount, totalNotes }: Omit<PaginationContext, "pageNotes">) {
|
||||||
if (pageCount < 1) return;
|
if (pageCount < 2) return;
|
||||||
|
|
||||||
let lastPrinted = false;
|
let lastPrinted = false;
|
||||||
let children: ComponentChildren[] = [];
|
let children: ComponentChildren[] = [];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user