Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
6962cb46
Commit
6962cb46
authored
Sep 02, 2023
by
comfyanonymous
Browse files
Fix issue when node_input is undefined.
parent
7291e303
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+3
-2
No files found.
web/extensions/core/widgetInputs.js
View file @
6962cb46
...
...
@@ -19,8 +19,9 @@ function hideWidget(node, widget, suffix = "") {
if
(
!
node
.
inputs
)
{
return
undefined
;
}
const
{
link
}
=
node
.
inputs
.
find
((
i
)
=>
i
.
widget
?.
name
===
widget
.
name
);
if
(
link
==
null
)
{
let
node_input
=
node
.
inputs
.
find
((
i
)
=>
i
.
widget
?.
name
===
widget
.
name
);
if
(
!
node_input
||
!
node_input
.
link
)
{
return
undefined
;
}
return
widget
.
origSerializeValue
?
widget
.
origSerializeValue
()
:
widget
.
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment