Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix bug when copying node with converted input.

comfyanonymous1f2f4eaa6f04
diff --git a/web/extensions/core/widgetInputs.js b/web/extensions/core/widgetInputs.js
index 3c9da458d..ce05a29e9 100644
--- a/web/extensions/core/widgetInputs.js
+++ b/web/extensions/core/widgetInputs.js
@@ -200,6 +200,10 @@ app.registerExtension({
for (const input of this.inputs) {
if (input.widget && !input.widget[GET_CONFIG]) {
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);
+ }
}
}
}