simplify onLoadMore in status list

This commit is contained in:
Mary Kate
2020-08-26 11:42:20 -05:00
parent fbee7a237c
commit 82c590d74b

View File

@ -64,7 +64,7 @@ export default class StatusList extends ImmutablePureComponent {
handleLoadOlder = debounce(() => {
const loadMoreID = this.props.lastStatusId ? this.props.lastStatusId : this.props.statusIds.last();
this.props.onLoadMore(loadMoreID ? loadMoreID : undefined);
this.props.onLoadMore(loadMoreID);
}, 300, { leading: true })
_selectChild(index, align_top) {