Reduce number of unpaginated events by 1

When unpaginating in the backwards direction
pull/21833/head
Luke Barnard 2017-03-30 18:02:33 +01:00
parent 847c01b9be
commit 8e5a83a056
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ var TimelinePanel = React.createClass({
}
);
let count = backwards ? marker + 1 : this.state.events.length - marker;
let count = backwards ? marker : this.state.events.length - marker;
if (count > 0) {
debuglog("TimelinePanel: Unpaginating", count, "in direction", dir);