mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-15 07:52:35 +08:00
check if workflowNode And widgets_values are defined as they were causing errors on QueuePrompt after loading workFlow
This commit is contained in:
parent
16165d1cbb
commit
25002a6f5b
@ -30,7 +30,8 @@ app.registerExtension({
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Overwrite the value in the serialized workflow pnginfo
|
// Overwrite the value in the serialized workflow pnginfo
|
||||||
workflowNode.widgets_values[widgetIndex] = prompt;
|
if (workflowNode?.widgets_values)
|
||||||
|
workflowNode.widgets_values[widgetIndex] = prompt;
|
||||||
|
|
||||||
return prompt;
|
return prompt;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user