mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-15 05:57:20 +00:00
Don't completely break workflow if field name changes.
This commit is contained in:
parent
edb3dea88b
commit
44b6eaad6f
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user