Fix timeline unable to load more when the last item is a inline-follow-suggestions (#39773)

This commit is contained in:
Sharlayan authored and GitHub committed 2026-07-10 12:58:52 +00:00
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']),