We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5383213 commit 05136acCopy full SHA for 05136ac
services/static-webserver/client/source/class/osparc/data/model/Node.js
@@ -1464,7 +1464,7 @@ qx.Class.define("osparc.data.model.Node", {
1464
// we don't have more information about the input node, so we just remove it by index
1465
const index = path.split("/")[4];
1466
// make sure index is valid
1467
- if (index > -1 || index < this.__inputNodes.length) {
+ if (index >= 0 && index < this.__inputNodes.length) {
1468
this.fireDataEvent("removeEdge", {
1469
nodeId1: this.__inputNodes[index],
1470
nodeId2: this.getNodeId(),
0 commit comments