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
69c5e6de
Unverified
Commit
69c5e6de
authored
Aug 31, 2023
by
Michael Poutre
Browse files
fix(widgets): Add options object if not present when forceInput: true
parent
9a7a52f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
web/scripts/app.js
web/scripts/app.js
+1
-0
No files found.
web/scripts/app.js
View file @
69c5e6de
...
...
@@ -1165,6 +1165,7 @@ export class ComfyApp {
this
.
addInput
(
inputName
,
type
);
}
if
(
inputData
[
1
]?.
forceInput
&&
config
?.
widget
)
{
if
(
!
config
.
widget
.
options
)
config
.
widget
.
options
=
{};
config
.
widget
.
options
.
forceInput
=
inputData
[
1
].
forceInput
;
}
}
...
...
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