diff --git a/examples/x6-app-dag/src/pages/rx-models/experiment-graph.tsx b/examples/x6-app-dag/src/pages/rx-models/experiment-graph.tsx index 1f678348d5e..24a3eed9fc6 100644 --- a/examples/x6-app-dag/src/pages/rx-models/experiment-graph.tsx +++ b/examples/x6-app-dag/src/pages/rx-models/experiment-graph.tsx @@ -314,6 +314,12 @@ class ExperimentGraph extends GraphCore { nextGraph.nodes = oldGraph.nodes.filter( (node) => !nodes.includes(node.id.toString()), ) + nextGraph.links = oldGraph.links.filter( + (link) => + !nodes.find((node) => + [link.source.toString(), link.target.toString()].includes(node), + ), + ) } else { nextGraph.links = oldGraph.links.filter((link) => { return !links.find((delLink) => {