Skip to content

Commit 41de86e

Browse files
author
gevhambardzumyan
committed
fix infinite scroll
1 parent 951a01e commit 41de86e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/controllers/Lane.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ class Lane extends Component {
3131
this.setState({loading: true})
3232
const nextPage = currentPage + 1
3333
onLaneScroll(nextPage, this.props.id).then(moreCards => {
34-
if (!moreCards || moreCards.length === 0) {
35-
// if no cards present, stop retrying until user action
36-
node.scrollTop = node.scrollTop - 10
37-
} else {
34+
if ((moreCards || []).length > 0) {
3835
this.props.actions.paginateLane({
3936
laneId: this.props.id,
4037
newCards: moreCards,

0 commit comments

Comments
 (0)