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
7291e303
Commit
7291e303
authored
Sep 02, 2023
by
comfyanonymous
Browse files
Fix issue with some workflows not getting serialized.
parent
77a176f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
web/extensions/core/widgetInputs.js
web/extensions/core/widgetInputs.js
+3
-0
No files found.
web/extensions/core/widgetInputs.js
View file @
7291e303
...
@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") {
...
@@ -16,6 +16,9 @@ function hideWidget(node, widget, suffix = "") {
widget
.
type
=
CONVERTED_TYPE
+
suffix
;
widget
.
type
=
CONVERTED_TYPE
+
suffix
;
widget
.
serializeValue
=
()
=>
{
widget
.
serializeValue
=
()
=>
{
// Prevent serializing the widget if we have no input linked
// Prevent serializing the widget if we have no input linked
if
(
!
node
.
inputs
)
{
return
undefined
;
}
const
{
link
}
=
node
.
inputs
.
find
((
i
)
=>
i
.
widget
?.
name
===
widget
.
name
);
const
{
link
}
=
node
.
inputs
.
find
((
i
)
=>
i
.
widget
?.
name
===
widget
.
name
);
if
(
link
==
null
)
{
if
(
link
==
null
)
{
return
undefined
;
return
undefined
;
...
...
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