hide 'older' link when there is only one page
This commit is contained in:
parent
095ad981db
commit
b162d381fa
1 changed files with 2 additions and 1 deletions
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue