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
88410ace
Commit
88410ace
authored
Nov 01, 2023
by
Joseph Antolick
Browse files
fix: handle null case for currentNode widgets to prevent scroll error
parent
e73ec8c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
web/extensions/core/contextMenuFilter.js
web/extensions/core/contextMenuFilter.js
+1
-1
No files found.
web/extensions/core/contextMenuFilter.js
View file @
88410ace
...
...
@@ -25,7 +25,7 @@ const ext = {
requestAnimationFrame
(()
=>
{
const
currentNode
=
LGraphCanvas
.
active_canvas
.
current_node
;
const
clickedComboValue
=
currentNode
.
widgets
.
filter
(
w
=>
w
.
type
===
"
combo
"
&&
w
.
options
.
values
.
length
===
values
.
length
)
?
.
filter
(
w
=>
w
.
type
===
"
combo
"
&&
w
.
options
.
values
.
length
===
values
.
length
)
.
find
(
w
=>
w
.
options
.
values
.
every
((
v
,
i
)
=>
v
===
values
[
i
]))
?.
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