Load titles from API format JSON (#3563)

This commit is contained in:
DLohn 2024-05-24 20:53:15 -07:00 committed by GitHub
parent efa5a711b2
commit 5b87369474
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -2238,6 +2238,7 @@ export class ComfyApp {
const data = apiData[id];
const node = LiteGraph.createNode(data.class_type);
node.id = isNaN(+id) ? id : +id;
node.title = data._meta?.title ?? node.title
graph.add(node);
}