Improve status reselect, do not display "load more" when no next link available
This commit is contained in:
@ -40,7 +40,8 @@ const makeMapStateToProps = () => {
|
||||
const mapStateToProps = (state, props) => ({
|
||||
statusIds: getStatusIds(state, props),
|
||||
isLoading: state.getIn(['timelines', props.type, 'isLoading'], true),
|
||||
isUnread: state.getIn(['timelines', props.type, 'unread']) > 0
|
||||
isUnread: state.getIn(['timelines', props.type, 'unread']) > 0,
|
||||
hasMore: !!state.getIn(['timelines', props.type, 'next'])
|
||||
});
|
||||
|
||||
return mapStateToProps;
|
||||
|
Reference in New Issue
Block a user