mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 14:30:41 +00:00
Avoid sort nodes in place (#70)
This commit is contained in:
@@ -2044,7 +2044,7 @@ const globalExport = {};
|
||||
*/
|
||||
serialize() {
|
||||
var nodes_info = [];
|
||||
nodes_info = this._nodes.sort((a, b) => a.id - b.id).map(node => node.serialize());
|
||||
nodes_info = [...this._nodes].sort((a, b) => a.id - b.id).map(node => node.serialize());
|
||||
|
||||
//pack link info into a non-verbose format
|
||||
var links = [];
|
||||
|
||||
Reference in New Issue
Block a user