web-installer/src/redux/reducers/chainlinkChainsReducer.js
// Reducers to add and remove chainlink node configurations from global state
Reducers to add and remove chainlink node configurations from global state
Reducers to add and remove chainlink node configurations from global state
function nodesById(state = {}, action) {
  switch (action.type) {
    case ADD_NODE_CHAINLINK:
      return {
        ...state,
        [action.payload.id]: action.payload,
      };
    case REMOVE_NODE_CHAINLINK:
      return _.omit(state, action.payload.id);
    default:
      return state;
  }
}
function nodesById ( state = { } , action ) { switch ( action . type ) { case ADD_NODE_CHAINLINK : return { ... state , [ action . payload . id ] : action . payload , } ; case REMOVE_NODE_CHAINLINK : return _ . omit ( state , action . payload . id ) ; default : return state ; } }
Reducers to add and remove chainlink node configurations from global state
Reducers to add and remove chainlink node configurations from global state