don't try to rehide defaultInput widget

This commit is contained in:
Chris 2023-09-11 16:01:03 +10:00
parent 9562a6b49e
commit c5aba54c8a

View File

@ -161,7 +161,7 @@ app.registerExtension({
if (input.widget && !input.widget.config[1]?.forceInput) {
const w = this.widgets.find((w) => w.name === input.widget.name);
if (w) {
hideWidget(this, w);
if (!input.widget.config[1]?.defaultInput) hideWidget(this, w);
} else {
convertToWidget(this, input)
}