Skip to content

Commit

Permalink
Support number/text ids when importing API JSON (#1952)
Browse files Browse the repository at this point in the history
* support numeric/text ids
  • Loading branch information
pythongosssss authored Nov 12, 2023
1 parent 4781819 commit 4aeef78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 4aeef78

Please sign in to comment.