1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

Support number/text ids when importing API JSON (#1952)

* support numeric/text ids
This commit is contained in:
pythongosssss
2023-11-12 19:49:23 +00:00
committed by GitHub
parent 4781819a85
commit 4aeef781a3

View File

@@ -1863,7 +1863,7 @@ export class ComfyApp {
for (const id of ids) {
const data = apiData[id];
const node = LiteGraph.createNode(data.class_type);
node.id = id;
node.id = isNaN(+id) ? id : +id;
graph.add(node);
}