web-installer/src/redux/reducers/generalReducer.js
// Reducers to add and remove repository configurations from global state
Reducers to add and remove repository configurations from global state
Reducers to add and remove repository configurations from global state
function githubRepositoriesById(state = {}, action) {
  switch (action.type) {
    case ADD_REPOSITORY:
      return {
        ...state,
        [action.payload.id]: action.payload,
      };
    case REMOVE_REPOSITORY:
      return _.omit(state, action.payload.id);
    default:
      return state;
  }
}
function githubRepositoriesById ( state = { } , action ) { switch ( action . type ) { case ADD_REPOSITORY : return { ... state , [ action . payload . id ] : action . payload , } ; case REMOVE_REPOSITORY : return _ . omit ( state , action . payload . id ) ; default : return state ; } }
Reducers to add and remove repository configurations from global state
Reducers to add and remove repository configurations from global state