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
52e74a2b
Commit
52e74a2b
authored
Mar 17, 2023
by
pythongosssss
Browse files
Fixed crash removing nodes
due to output link is still being set but not valid
parent
c0f53250
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
web/extensions/core/rerouteNode.js
web/extensions/core/rerouteNode.js
+8
-2
No files found.
web/extensions/core/rerouteNode.js
View file @
52e74a2b
...
...
@@ -107,12 +107,18 @@ app.registerExtension({
node
.
size
=
node
.
computeSize
();
for
(
const
l
of
node
.
outputs
[
0
].
links
||
[])
{
app
.
graph
.
links
[
l
].
color
=
color
;
const
link
=
app
.
graph
.
links
[
l
];
if
(
link
)
{
link
.
color
=
color
;
}
}
}
if
(
inputNode
)
{
app
.
graph
.
links
[
inputNode
.
inputs
[
0
].
link
].
color
=
color
;
const
link
=
app
.
graph
.
links
[
inputNode
.
inputs
[
0
].
link
];
if
(
link
)
{
link
.
color
=
color
;
}
}
};
...
...
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