web-installer/src/redux/reducers/chainlinkChainsReducer.js
// Reducers to add and remove from list of all evm nodes
Reducers to add and remove from list of all evm nodes
Reducers to add and remove from list of all evm nodes
function allEvmNodes(state = [], action) {
  switch (action.type) {
    case ADD_NODE_EVM:
      if (state.includes(action.payload.id)) {
        return state;
      }
      return state.concat(action.payload.id);
    case REMOVE_NODE_EVM:
      return state.filter((config) => config !== action.payload.id);
    default:
      return state;
  }
}
function allEvmNodes ( state = [ ] , action ) { switch ( action . type ) { case ADD_NODE_EVM : if ( state . includes ( action . payload . id ) ) { return state ; } return state . concat ( action . payload . id ) ; case REMOVE_NODE_EVM : return state . filter ( ( config ) => config !== action . payload . id ) ; default : return state ; } }
Reducers to add and remove from list of all evm nodes
Reducers to add and remove from list of all evm nodes