mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 18:18:55 +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">) {
|
||||
if (pageCount < 1) return;
|
||||
if (pageCount < 2) return;
|
||||
|
||||
let lastPrinted = false;
|
||||
let children: ComponentChildren[] = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user