From 39c3a57c110c12ddeee4fdedd9692f550ff70c07 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Wed, 2 Apr 2025 13:58:06 -0400 Subject: [PATCH] [Cleanup] Remove handling of legacy slot widget config (#3311) --- src/extensions/core/widgetInputs.ts | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/extensions/core/widgetInputs.ts b/src/extensions/core/widgetInputs.ts index 89026d7f9..b111f15cc 100644 --- a/src/extensions/core/widgetInputs.ts +++ b/src/extensions/core/widgetInputs.ts @@ -834,22 +834,6 @@ app.registerExtension({ getConfig.call(this, input.widget.name) } - // Cleanup old widget config - if (input.widget.config) { - // @ts-expect-error WidgetRef - if (input.widget.config[0] instanceof Array) { - // If we are an old converted combo then replace the input type and the stored link data - input.type = 'COMBO' - - // @ts-expect-error fixme ts strict error - const link = app.graph.links[input.link] - if (link) { - link.type = input.type - } - } - delete input.widget.config - } - // @ts-expect-error fixme ts strict error const w = this.widgets.find((w) => w.name === input.widget.name) if (w) {