diff --git a/src/litegraph.js b/src/litegraph.js index 8ab8267b4..adfcdb5b0 100755 --- a/src/litegraph.js +++ b/src/litegraph.js @@ -472,8 +472,8 @@ this.stop(); this.status = LGraph.STATUS_STOPPED; - this.last_node_id = 1; - this.last_link_id = 1; + this.last_node_id = 0; + this.last_link_id = 0; this._version = -1; //used to detect changes @@ -9178,4 +9178,4 @@ LGraphNode.prototype.executeAction = function(action) } })(this); -if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph; \ No newline at end of file +if (typeof exports != "undefined") exports.LiteGraph = this.LiteGraph;