fix: made clean edges clean after changing dropdown of output (#8460)
fixed output considering all outputs not just selected one
This commit is contained in:
parent
8fd8be52aa
commit
fcd6a5c059
1 changed files with 3 additions and 3 deletions
|
|
@ -138,9 +138,9 @@ export function cleanEdges(nodes: AllNodeType[], edges: EdgeType[]) {
|
|||
const name = parsedSourceHandle.name;
|
||||
|
||||
if (sourceNode.type == "genericNode") {
|
||||
const output = sourceNode.data.node!.outputs?.find(
|
||||
(output) => output.name === name,
|
||||
);
|
||||
const output = sourceNode.data
|
||||
.node!.outputs?.filter((output) => output.selected)
|
||||
.find((output) => output.name === name);
|
||||
|
||||
if (output) {
|
||||
const outputTypes =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue