hide 'older' link when there is only one page

This commit is contained in:
Ilion Beyst 2022-10-26 20:36:37 +02:00
parent 095ad981db
commit b162d381fa

View file

@ -85,7 +85,8 @@
}
function olderMatchesLink(matches: object[]): string {
if (matches.length == 0 || (query["before"] && !hasNext)) {
// sort order is time DESC unless "before" is set
if (matches.length == 0 || (!query["after"] && !hasNext)) {
return null;
}
const lastTimestamp = matches[matches.length - 1]["timestamp"];