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:
Lucas Oliveira 2025-06-11 11:38:25 -03:00 committed by GitHub
commit fcd6a5c059
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 =