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
cf4910a3
Unverified
Commit
cf4910a3
authored
Feb 12, 2024
by
chrisgoringe
Committed by
GitHub
Feb 12, 2024
Browse files
Prevent hideWidget being called twice for same widget
Fix for #2766
parent
02409c30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+1
-0
No files found.
web/extensions/core/widgetInputs.js
View file @
cf4910a3
...
@@ -22,6 +22,7 @@ function isConvertableWidget(widget, config) {
...
@@ -22,6 +22,7 @@ function isConvertableWidget(widget, config) {
}
}
function
hideWidget
(
node
,
widget
,
suffix
=
""
)
{
function
hideWidget
(
node
,
widget
,
suffix
=
""
)
{
if
(
widget
.
type
?.
startsWith
(
CONVERTED_TYPE
))
return
;
widget
.
origType
=
widget
.
type
;
widget
.
origType
=
widget
.
type
;
widget
.
origComputeSize
=
widget
.
computeSize
;
widget
.
origComputeSize
=
widget
.
computeSize
;
widget
.
origSerializeValue
=
widget
.
serializeValue
;
widget
.
origSerializeValue
=
widget
.
serializeValue
;
...
...
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