From 9483cfe915a6cc46527819c9458b3c68f07d9488 Mon Sep 17 00:00:00 2001 From: filtered <176114999+webfiltered@users.noreply.github.com> Date: Sat, 14 Sep 2024 09:33:43 +1000 Subject: [PATCH] Add graceful correction when widgets undef. (#820) 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) {