Fix subscribing fetch and expand
This commit is contained in:
parent
5f115f45e5
commit
08d250d633
1 changed files with 2 additions and 2 deletions
|
@ -119,9 +119,9 @@ export default function userLists(state = initialState, action) {
|
||||||
case FOLLOWING_EXPAND_FAIL:
|
case FOLLOWING_EXPAND_FAIL:
|
||||||
return state.setIn(['following', action.id, 'isLoading'], false);
|
return state.setIn(['following', action.id, 'isLoading'], false);
|
||||||
case SUBSCRIBING_FETCH_SUCCESS:
|
case SUBSCRIBING_FETCH_SUCCESS:
|
||||||
return normalizeList(state, 'subscribing', action.id, action.accounts, action.next);
|
return normalizeList(state, ['subscribing', action.id], action.accounts, action.next);
|
||||||
case SUBSCRIBING_EXPAND_SUCCESS:
|
case SUBSCRIBING_EXPAND_SUCCESS:
|
||||||
return appendToList(state, 'subscribing', action.id, action.accounts, action.next);
|
return appendToList(state, ['subscribing', action.id], action.accounts, action.next);
|
||||||
case SUBSCRIBING_FETCH_REQUEST:
|
case SUBSCRIBING_FETCH_REQUEST:
|
||||||
case SUBSCRIBING_EXPAND_REQUEST:
|
case SUBSCRIBING_EXPAND_REQUEST:
|
||||||
return state.setIn(['subscribing', action.id, 'isLoading'], true);
|
return state.setIn(['subscribing', action.id, 'isLoading'], true);
|
||||||
|
|
Loading…
Reference in a new issue