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
4e437582
"tests/vscode:/vscode.git/clone" did not exist on "0df83c79e4247e6b58c4c0aacfcb40b74db8d96e"
Commit
4e437582
authored
Apr 03, 2023
by
omar92
Browse files
fix bug in reroute node , that didnt allow to load old worflows
parent
f50b1fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/extensions/core/rerouteNode.js
web/extensions/core/rerouteNode.js
+3
-3
No files found.
web/extensions/core/rerouteNode.js
View file @
4e437582
...
@@ -50,12 +50,12 @@ app.registerExtension({
...
@@ -50,12 +50,12 @@ app.registerExtension({
}
}
else
{
else
{
// Move the previous node
// Move the previous node
currentNode
=
node
;
currentNode
=
node
;
}
}
}
else
{
}
else
{
// We've found the end
// We've found the end
inputNode
=
currentNode
;
inputNode
=
currentNode
;
inputType
=
node
.
outputs
[
link
.
origin_slot
].
type
;
inputType
=
node
.
outputs
[
link
.
origin_slot
]
?
.
type
??
null
;
break
;
break
;
}
}
}
else
{
}
else
{
...
@@ -87,7 +87,7 @@ app.registerExtension({
...
@@ -87,7 +87,7 @@ app.registerExtension({
updateNodes
.
push
(
node
);
updateNodes
.
push
(
node
);
}
else
{
}
else
{
// We've found an output
// We've found an output
const
nodeOutType
=
node
.
inputs
[
link
.
target_slot
].
type
;
const
nodeOutType
=
node
.
inputs
&&
node
.
inputs
[
link
?.
target_slot
]
&&
node
.
inputs
[
link
.
target_slot
].
type
?
node
.
inputs
[
link
.
target_slot
].
type
:
null
;
if
(
inputType
&&
nodeOutType
!==
inputType
)
{
if
(
inputType
&&
nodeOutType
!==
inputType
)
{
// The output doesnt match our input so disconnect it
// The output doesnt match our input so disconnect it
node
.
disconnectInput
(
link
.
target_slot
);
node
.
disconnectInput
(
link
.
target_slot
);
...
...
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