Commit 44b6eaad authored by comfyanonymous's avatar comfyanonymous
Browse files

Don't completely break workflow if field name changes.

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