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
b948b2cf
"docs/vscode:/vscode.git/clone" did not exist on "f256abffd38e848211c208ac706a2e35b1ac2e94"
Commit
b948b2cf
authored
Aug 05, 2023
by
pythongosssss
Browse files
handle value missing
parent
32e115b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
web/extensions/core/contextMenuFilter.js
web/extensions/core/contextMenuFilter.js
+3
-0
No files found.
web/extensions/core/contextMenuFilter.js
View file @
b948b2cf
...
...
@@ -30,6 +30,9 @@ const ext = {
?.
value
;
let
selectedIndex
=
clickedComboValue
?
values
.
findIndex
(
v
=>
v
===
clickedComboValue
)
:
0
;
if
(
selectedIndex
<
0
)
{
selectedIndex
=
0
;
}
let
selectedItem
=
displayedItems
[
selectedIndex
];
updateSelected
();
...
...
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