mirror of
https://github.com/zoriya/flood.git
synced 2026-06-02 19:11:14 +00:00
Fix bug where last torrent isn't displayed
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user