web-installer/src/redux/actions/chainlinkActions.js
// and a unique id is generated for it.
and a unique id is generated for it.
and a unique id is generated for it .
function addNodeChainlink(payload) {
  let id = `node_${uuidv4()}`;
  if ('id' in payload) {
    id = payload.id;
  }
  return {
    type: ADD_NODE_CHAINLINK,
    payload: {
      id,
      parent_id: payload.parent_id,
      name: payload.name,
      node_prometheus_urls: payload.node_prometheus_urls,
      monitor_prometheus: payload.monitor_prometheus,
      monitor_node: payload.monitor_node,
    },
  };
}
function addNodeChainlink ( payload ) { let id = ` ${ uuidv4 ( ) } ` ; if ( 'id' in payload ) { id = payload . id ; } return { type : ADD_NODE_CHAINLINK , payload : { id , parent_id : payload . parent_id , name : payload . name , node_prometheus_urls : payload . node_prometheus_urls , monitor_prometheus : payload . monitor_prometheus , monitor_node : payload . monitor_node , } , } ; }
and a unique id is generated for it.
and a unique id is generated for it .