Skip to content

Commit 951a01e

Browse files
author
gevhambardzumyan
committed
qez inch
1 parent 1cf8fd4 commit 951a01e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/controllers/Lane.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Lane extends Component {
3333
onLaneScroll(nextPage, this.props.id).then(moreCards => {
3434
if (!moreCards || moreCards.length === 0) {
3535
// if no cards present, stop retrying until user action
36-
node.scrollTop = node.scrollTop - 100
36+
node.scrollTop = node.scrollTop - 10
3737
} else {
3838
this.props.actions.paginateLane({
3939
laneId: this.props.id,
@@ -49,7 +49,7 @@ class Lane extends Component {
4949
sortCards(cards, sortFunction) {
5050
if (!cards) return []
5151
if (!sortFunction) return cards
52-
return cards.concat().sort(function(card1, card2) {
52+
return cards.concat().sort(function (card1, card2) {
5353
return sortFunction(card1, card2)
5454
})
5555
}
@@ -330,7 +330,4 @@ const mapDispatchToProps = dispatch => ({
330330
actions: bindActionCreators(laneActions, dispatch)
331331
})
332332

333-
export default connect(
334-
null,
335-
mapDispatchToProps
336-
)(Lane)
333+
export default connect(null, mapDispatchToProps)(Lane)

0 commit comments

Comments
 (0)