Add hasMore field to account timeline (#2066)

This commit is contained in:
geta6
2017-04-18 20:10:49 +09:00
committed by Eugen
parent 93c13fe691
commit 75910abd8f
3 changed files with 12 additions and 6 deletions

View File

@ -46,7 +46,9 @@ const AccountTimeline = React.createClass({
},
handleScrollToBottom () {
this.props.dispatch(expandAccountTimeline(Number(this.props.params.accountId)));
if (!this.props.isLoading && this.props.hasMore) {
this.props.dispatch(expandAccountTimeline(Number(this.props.params.accountId)));
}
},
render () {