@receptron/graphai_vue_cytoscape 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/cytoscape.js +3 -1
  2. package/package.json +1 -1
package/lib/cytoscape.js CHANGED
@@ -238,7 +238,9 @@ var cytoscapeFromGraph = function (_graph_data) {
238
238
  return tmp;
239
239
  }, {});
240
240
  Object.keys(node.inputs).forEach(function (parentInputNodeId) {
241
- graph_1.nodes[parentInputNodeId] = { value: "dummy" };
241
+ if (!graph_1.nodes[parentInputNodeId]) {
242
+ graph_1.nodes[parentInputNodeId] = { value: "dummy" };
243
+ }
242
244
  (0, exports.inputs2dataSources)([node.inputs[parentInputNodeId]]).forEach(function (input) {
243
245
  var source = parseInput(input).source;
244
246
  pushEdge({ source: nodeId, target: parentInputNodeId, label: source });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@receptron/graphai_vue_cytoscape",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "main": "lib/cytoscape.js",
5
5
  "files": [
6
6
  "./lib"