Don't completely break workflow if field name changes.

This commit is contained in:
comfyanonymous 2023-03-25 01:04:02 -04:00
parent edb3dea88b
commit 44b6eaad6f

View File

@ -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);
if (w) {
hideWidget(this, w);
} else {
convertToWidget(this, input)
}
}
}
}