Support number/text ids when importing API JSON (#1952)
* support numeric/text ids
This commit is contained in:
parent
4781819a85
commit
4aeef781a3
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue