Fix error when visiting non-public hashtag timelines (#36961)
This commit is contained in:
1 parent
dc67dbba82
commit
f01e80bed3
4 files changed
+36
-15
No files matched your search
@@ -40,10 +40,10 @@ const makeMapStateToProps = () => {
|
||||
const getStatusIds = makeGetStatusIds();
|
||||
const getPendingStatusIds = makeGetStatusIds(true);
|
||||
|
||||
const mapStateToProps = (state, { timelineId }) => ({
|
||||
const mapStateToProps = (state, { timelineId, initialLoadingState = true }) => ({
|
||||
statusIds: getStatusIds(state, { type: timelineId }),
|
||||
lastId: state.getIn(['timelines', timelineId, 'items'])?.last(),
|
||||
isLoading: state.getIn(['timelines', timelineId, 'isLoading'], true),
|
||||
isLoading: state.getIn(['timelines', timelineId, 'isLoading'], initialLoadingState),
|
||||
isPartial: state.getIn(['timelines', timelineId, 'isPartial'], false),
|
||||
hasMore: state.getIn(['timelines', timelineId, 'hasMore']),
|
||||
numPending: getPendingStatusIds(state, { type: timelineId }).size,
|
||||
|
||||
Reference in new issue
Block a user