mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00: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
4e43758236
commit
ca2ae98470
@ -30,7 +30,8 @@ app.registerExtension({
|
||||
}
|
||||
|
||||
// Overwrite the value in the serialized workflow pnginfo
|
||||
workflowNode.widgets_values[widgetIndex] = prompt;
|
||||
if (workflowNode?.widgets_values)
|
||||
workflowNode.widgets_values[widgetIndex] = prompt;
|
||||
|
||||
return prompt;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user