Skip to content

Commit

Permalink
qez inch
Browse files Browse the repository at this point in the history
  • Loading branch information
gevhambardzumyan committed Feb 2, 2021
1 parent 1cf8fd4 commit 951a01e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/controllers/Lane.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Lane extends Component {
onLaneScroll(nextPage, this.props.id).then(moreCards => {
if (!moreCards || moreCards.length === 0) {
// if no cards present, stop retrying until user action
node.scrollTop = node.scrollTop - 100
node.scrollTop = node.scrollTop - 10
} else {
this.props.actions.paginateLane({
laneId: this.props.id,
Expand All @@ -49,7 +49,7 @@ class Lane extends Component {
sortCards(cards, sortFunction) {
if (!cards) return []
if (!sortFunction) return cards
return cards.concat().sort(function(card1, card2) {
return cards.concat().sort(function (card1, card2) {
return sortFunction(card1, card2)
})
}
Expand Down Expand Up @@ -330,7 +330,4 @@ const mapDispatchToProps = dispatch => ({
actions: bindActionCreators(laneActions, dispatch)
})

export default connect(
null,
mapDispatchToProps
)(Lane)
export default connect(null, mapDispatchToProps)(Lane)

0 comments on commit 951a01e

Please sign in to comment.