Browse Source

Fix bug when copying node with converted input.

pull/1706/head
comfyanonymous 1 year ago
parent
commit
1f2f4eaa6f
  1. 4
      web/extensions/core/widgetInputs.js

4
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);
}
}
}
}

Loading…
Cancel
Save