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