[Cleanup] Remove handling of legacy slot widget config (#3311)

This commit is contained in:
Chenlei Hu
2025-04-02 13:58:06 -04:00
committed by GitHub
parent 6d09b7165f
commit 39c3a57c11

View File

@@ -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) {