Unverified Commit 4aeef781 authored by pythongosssss's avatar pythongosssss Committed by GitHub
Browse files

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

* support numeric/text ids
parent 4781819a
...@@ -1863,7 +1863,7 @@ export class ComfyApp { ...@@ -1863,7 +1863,7 @@ export class ComfyApp {
for (const id of ids) { for (const id of ids) {
const data = apiData[id]; const data = apiData[id];
const node = LiteGraph.createNode(data.class_type); const node = LiteGraph.createNode(data.class_type);
node.id = id; node.id = isNaN(+id) ? id : +id;
graph.add(node); graph.add(node);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment