Browse Source

Don't completely break workflow if field name changes.

pull/258/head
comfyanonymous 2 years ago
parent
commit
44b6eaad6f
  1. 6
      web/extensions/core/widgetInputs.js

6
web/extensions/core/widgetInputs.js

@ -131,7 +131,11 @@ app.registerExtension({
for (const input of this.inputs) {
if (input.widget) {
const w = this.widgets.find((w) => w.name === input.widget.name);
hideWidget(this, w);
if (w) {
hideWidget(this, w);
} else {
convertToWidget(this, input)
}
}
}
}

Loading…
Cancel
Save