Commit 9af7033c authored by comfyanonymous's avatar comfyanonymous
Browse files

Merge branch 'hotfix/refresh-primitive-conflict' of https://github.com/ltdrdata/ComfyUI

parents eb448dd8 08abd838
...@@ -1424,6 +1424,11 @@ export class ComfyApp { ...@@ -1424,6 +1424,11 @@ export class ComfyApp {
const def = defs[node.type]; const def = defs[node.type];
// HOTFIX: The current patch is designed to prevent the rest of the code from breaking due to primitive nodes,
// and additional work is needed to consider the primitive logic in the refresh logic.
if(!def)
continue;
for(const widgetNum in node.widgets) { for(const widgetNum in node.widgets) {
const widget = node.widgets[widgetNum] const widget = node.widgets[widgetNum]
if(widget.type == "combo" && def["input"]["required"][widget.name] !== undefined) { if(widget.type == "combo" && def["input"]["required"][widget.name] !== undefined) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment