Add hasMore field to account timeline (#2066)
This commit is contained in:
parent
93c13fe691
commit
75910abd8f
3 changed files with 12 additions and 6 deletions
|
@ -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 () {
|
||||
|
|
Reference in a new issue