Fix timeline unable to load more when the last item is a inline-follow-suggestions (#39773)
This commit is contained in:
1 parent
4c69ecb13d
commit
cf41960f64
2 files changed
+3
-2
No files matched your search
@@ -58,7 +58,7 @@ const makeMapStateToProps = () => {
|
||||
*/
|
||||
const mapStateToProps = (state, { timelineId, initialLoadingState = true, maxItems }) => ({
|
||||
statusIds: getStatusIds(state, { type: timelineId, maxItems }),
|
||||
lastId: state.getIn(['timelines', timelineId, 'items'])?.last(),
|
||||
lastId: state.getIn(['timelines', timelineId, 'items'])?.findLast(id => !isNonStatusId(id)),
|
||||
isLoading: state.getIn(['timelines', timelineId, 'isLoading'], initialLoadingState),
|
||||
isPartial: state.getIn(['timelines', timelineId, 'isPartial'], false),
|
||||
hasMore: state.getIn(['timelines', timelineId, 'hasMore']),
|
||||
|
||||
Reference in new issue
Block a user