Commit ca2ae984 authored by omar92's avatar omar92
Browse files

check if workflowNode And widgets_values are defined as they were causing...

check if workflowNode And widgets_values are defined as they were causing errors on QueuePrompt  after loading workFlow
parent 4e437582
...@@ -30,7 +30,8 @@ app.registerExtension({ ...@@ -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;
}; };
......
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