refactor(edges): use internal id
This commit is contained in:
Vendored
+1
-1
@@ -30400,7 +30400,7 @@
|
|||||||
|
|
||||||
var EdgeComponent = props.edgeTypes[edgeType] || props.edgeTypes["default"];
|
var EdgeComponent = props.edgeTypes[edgeType] || props.edgeTypes["default"];
|
||||||
return React__default.createElement(EdgeComponent, {
|
return React__default.createElement(EdgeComponent, {
|
||||||
key: "".concat(e.source, "-").concat(e.target),
|
key: e.id,
|
||||||
id: e.id,
|
id: e.id,
|
||||||
type: e.type,
|
type: e.type,
|
||||||
sourceNode: sourceNode,
|
sourceNode: sourceNode,
|
||||||
|
|||||||
@@ -38453,7 +38453,7 @@ function renderEdge(e, props, graphContext) {
|
|||||||
|
|
||||||
var EdgeComponent = props.edgeTypes[edgeType] || props.edgeTypes.default;
|
var EdgeComponent = props.edgeTypes[edgeType] || props.edgeTypes.default;
|
||||||
return _react.default.createElement(EdgeComponent, {
|
return _react.default.createElement(EdgeComponent, {
|
||||||
key: "".concat(e.source, "-").concat(e.target),
|
key: e.id,
|
||||||
id: e.id,
|
id: e.id,
|
||||||
type: e.type,
|
type: e.type,
|
||||||
sourceNode: sourceNode,
|
sourceNode: sourceNode,
|
||||||
@@ -42638,7 +42638,7 @@ var parent = module.bundle.parent;
|
|||||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||||
var hostname = "" || location.hostname;
|
var hostname = "" || location.hostname;
|
||||||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "53462" + '/');
|
var ws = new WebSocket(protocol + '://' + hostname + ':' + "61736" + '/');
|
||||||
|
|
||||||
ws.onmessage = function (event) {
|
ws.onmessage = function (event) {
|
||||||
checkedAssets = {};
|
checkedAssets = {};
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -212,7 +212,7 @@ var parent = module.bundle.parent;
|
|||||||
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
if ((!parent || !parent.isParcelRequire) && typeof WebSocket !== 'undefined') {
|
||||||
var hostname = "" || location.hostname;
|
var hostname = "" || location.hostname;
|
||||||
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
var protocol = location.protocol === 'https:' ? 'wss' : 'ws';
|
||||||
var ws = new WebSocket(protocol + '://' + hostname + ':' + "53462" + '/');
|
var ws = new WebSocket(protocol + '://' + hostname + ':' + "61736" + '/');
|
||||||
|
|
||||||
ws.onmessage = function (event) {
|
ws.onmessage = function (event) {
|
||||||
checkedAssets = {};
|
checkedAssets = {};
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function renderEdge(e, props, graphContext) {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<EdgeComponent
|
<EdgeComponent
|
||||||
key={`${e.source}-${e.target}`}
|
key={e.id}
|
||||||
id={e.id}
|
id={e.id}
|
||||||
type={e.type}
|
type={e.type}
|
||||||
sourceNode={sourceNode}
|
sourceNode={sourceNode}
|
||||||
|
|||||||
@@ -23,7 +23,6 @@ function onMouseDown(evt, { nodeId, dispatch, onConnect, isTarget }) {
|
|||||||
const targetId = elementBelow.getAttribute('data-nodeid');
|
const targetId = elementBelow.getAttribute('data-nodeid');
|
||||||
onConnect({ source: nodeId, target: targetId });
|
onConnect({ source: nodeId, target: targetId });
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dispatch(setConnecting({ connectionSourceId: false }));
|
dispatch(setConnecting({ connectionSourceId: false }));
|
||||||
|
|||||||
Reference in New Issue
Block a user