mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-28 10:12:11 +00:00
Add graceful correction when widgets undef. (#820)
Fixes crash on load of workflow where `node.widgets` has no `.find()`
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user