From 56b9233c3c03b17d1c38367ffa2d23b4f68cc4e9 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 14 Sep 2024 00:18:36 +1000 Subject: [PATCH] Add graceful correction when widgets undef. Fixes crash on load of workflow where `node.widgets` has no `.find()` --- src/extensions/core/widgetInputs.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extensions/core/widgetInputs.ts b/src/extensions/core/widgetInputs.ts index 4a8167483..16f6b707a 100644 --- a/src/extensions/core/widgetInputs.ts +++ b/src/extensions/core/widgetInputs.ts @@ -751,6 +751,7 @@ app.registerExtension({ nodeType.prototype.onGraphConfigured = function () { if (!this.inputs) return + this.widgets ??= [] for (const input of this.inputs) { if (input.widget) {