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
36e15f25
Commit
36e15f25
authored
Dec 31, 2023
by
comfyanonymous
Browse files
Reregister nodes when pressing refresh button.
parent
1b103e0c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
web/scripts/app.js
web/scripts/app.js
+2
-6
No files found.
web/scripts/app.js
View file @
36e15f25
...
@@ -2020,12 +2020,8 @@ export class ComfyApp {
...
@@ -2020,12 +2020,8 @@ export class ComfyApp {
async
refreshComboInNodes
()
{
async
refreshComboInNodes
()
{
const
defs
=
await
api
.
getNodeDefs
();
const
defs
=
await
api
.
getNodeDefs
();
for
(
const
nodeId
in
LiteGraph
.
registered_node_types
)
{
for
(
const
nodeId
in
defs
)
{
const
node
=
LiteGraph
.
registered_node_types
[
nodeId
];
this
.
registerNodeDef
(
nodeId
,
defs
[
nodeId
]);
const
nodeDef
=
defs
[
nodeId
];
if
(
!
nodeDef
)
continue
;
node
.
nodeData
=
nodeDef
;
}
}
for
(
let
nodeNum
in
this
.
graph
.
_nodes
)
{
for
(
let
nodeNum
in
this
.
graph
.
_nodes
)
{
...
...
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