Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix issue with some workflows not getting serialized.

comfyanonymous7291e303f662
diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js
index a6b1a1dc2..34c656de1 100644
--- a/web/extensions/core/widgetInputs.js
+++ b/web/extensions/core/widgetInputs.js
@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") {
widget.type = CONVERTED_TYPE + suffix;
widget.serializeValue = () => {
// 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);
if (link == null) {
return undefined;