Add graceful correction when widgets undef. (#820)

Fixes crash on load of workflow where `node.widgets` has no `.find()`
This commit is contained in:
filtered
2024-09-14 09:33:43 +10:00
committed by GitHub
parent 862e2c2607
commit 9483cfe915

View File

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