Skip to content

Commit

Permalink
Add graceful correction when widgets undef. (#820)
Browse files Browse the repository at this point in the history
Fixes crash on load of workflow where `node.widgets` has no `.find()`
  • Loading branch information
webfiltered authored Sep 13, 2024
1 parent 862e2c2 commit 9483cfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/extensions/core/widgetInputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 9483cfe

Please sign in to comment.