1
mirror of https://github.com/comfyanonymous/ComfyUI.git synced 2025-08-02 23:14:49 +08:00

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