mirror of
https://github.com/utterance/utterances.git
synced 2024-07-14 18:40:23 +03:00
Fix #540
This commit is contained in:
parent
e5f5400643
commit
3c79187fcb
@ -105,7 +105,8 @@ async function renderComments(issue: Issue, timeline: TimelineComponent) {
|
||||
pageLoads.push(loadCommentsPage(issue.number, pageCount));
|
||||
}
|
||||
// if the last page is small, load the penultimate page.
|
||||
if (pageCount > 2 && issue.comments % PAGE_SIZE < 3) {
|
||||
if (pageCount > 2 && issue.comments % PAGE_SIZE < 3 &&
|
||||
issue.comments % PAGE_SIZE !== 0) {
|
||||
pageLoads.push(loadCommentsPage(issue.number, pageCount - 1));
|
||||
}
|
||||
// await all loads to reduce jank.
|
||||
|
Loading…
Reference in New Issue
Block a user