1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

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

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);
}