Commit 7291e303 authored by comfyanonymous's avatar comfyanonymous
Browse files

Fix issue with some workflows not getting serialized.

parent 77a176f9
...@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") { ...@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") {
widget.type = CONVERTED_TYPE + suffix; widget.type = CONVERTED_TYPE + suffix;
widget.serializeValue = () => { widget.serializeValue = () => {
// Prevent serializing the widget if we have no input linked // Prevent serializing the widget if we have no input linked
if (!node.inputs) {
return undefined;
}
const { link } = node.inputs.find((i) => i.widget?.name === widget.name); const { link } = node.inputs.find((i) => i.widget?.name === widget.name);
if (link == null) { if (link == null) {
return undefined; return 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