Skip to content

Commit

Permalink
Reregister nodes when pressing refresh button.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 31, 2023
1 parent 1b103e0 commit 36e15f2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions web/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2020,12 +2020,8 @@ export class ComfyApp {
async refreshComboInNodes() {
const defs = await api.getNodeDefs();

for(const nodeId in LiteGraph.registered_node_types) {
const node = LiteGraph.registered_node_types[nodeId];
const nodeDef = defs[nodeId];
if(!nodeDef) continue;

node.nodeData = nodeDef;
for (const nodeId in defs) {
this.registerNodeDef(nodeId, defs[nodeId]);
}

for(let nodeNum in this.graph._nodes) {
Expand Down

0 comments on commit 36e15f2

Please sign in to comment.