mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-04-20 03:13:30 +00:00
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) {
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user