Fixed issue in timelines reducer with wrong variable on fail

• Fixed:
- issue in timelines reducer with wrong variable on fail
This commit is contained in:
mgabdev 2021-01-13 22:46:40 -05:00
parent 763a0cb10b
commit 0ef9d8410f
1 changed files with 2 additions and 2 deletions

View File

@ -180,8 +180,8 @@ export default function timelines(state = initialState, action) {
return state.update(action.timeline, initialTimeline, map => map.set('isLoading', true));
case TIMELINE_EXPAND_FAIL:
return state.update(action.timeline, initialTimeline, map => map.withMutations(mMap => {
map.set('isLoading', false)
map.set('isError', true)
mMap.set('isLoading', false)
mMap.set('isError', true)
}));
case TIMELINE_EXPAND_SUCCESS:
return expandNormalizedTimeline(state, action.timeline, fromJS(action.statuses), action.next, action.partial, action.isLoadingRecent);