Skip to content

Commit 05136ac

Browse files
committed
minor
1 parent 5383213 commit 05136ac

File tree

1 file changed

+1
-1
lines changed
  • services/static-webserver/client/source/class/osparc/data/model

1 file changed

+1
-1
lines changed

services/static-webserver/client/source/class/osparc/data/model/Node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ qx.Class.define("osparc.data.model.Node", {
14641464
// we don't have more information about the input node, so we just remove it by index
14651465
const index = path.split("/")[4];
14661466
// make sure index is valid
1467-
if (index > -1 || index < this.__inputNodes.length) {
1467+
if (index >= 0 && index < this.__inputNodes.length) {
14681468
this.fireDataEvent("removeEdge", {
14691469
nodeId1: this.__inputNodes[index],
14701470
nodeId2: this.getNodeId(),

0 commit comments

Comments
 (0)