Fix bug where last torrent isn't displayed

This commit is contained in:
John Furrow
2016-01-07 18:25:39 -08:00
parent 9c24c36122
commit 23ba989d81
@@ -148,7 +148,7 @@ export default class TorrentListContainer extends React.Component {
let maxTorrentIndex = minTorrentIndex + elementsInView + buffer * 2 + 1;
if (this.state.torrentCount < maxTorrentIndex) {
maxTorrentIndex = this.state.torrentCount - 1;
maxTorrentIndex = this.state.torrentCount;
}
if (minTorrentIndex < 0) {