mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-03-13 06:11:09 +00:00
Fix bug when copying node with converted input.
This commit is contained in:
parent
69a824e9a4
commit
1f2f4eaa6f
@ -200,6 +200,10 @@ app.registerExtension({
|
|||||||
for (const input of this.inputs) {
|
for (const input of this.inputs) {
|
||||||
if (input.widget && !input.widget[GET_CONFIG]) {
|
if (input.widget && !input.widget[GET_CONFIG]) {
|
||||||
input.widget[GET_CONFIG] = () => getConfig.call(this, input.widget.name);
|
input.widget[GET_CONFIG] = () => getConfig.call(this, input.widget.name);
|
||||||
|
const w = this.widgets.find((w) => w.name === input.widget.name);
|
||||||
|
if (w) {
|
||||||
|
hideWidget(this, w);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user