[v11.0.x] Canvas: Fix phantom connections persisting after element deletion (#87355)

Canvas: Fix phantom connections persisting after element deletion (#87285)

(cherry picked from commit 68fa2110d6)

Co-authored-by: Nathan Marrs <nathanielmarrs@gmail.com>
This commit is contained in:
grafana-delivery-bot[bot]
2024-05-04 00:37:39 +03:00
committed by GitHub
co-authored by Nathan Marrs
parent 21d7f1f505
commit ec1698a9da
+3
View File
@@ -320,6 +320,9 @@ export function updateConnectionsForSource(element: ElementState, scene: Scene)
const connections = sourceConnections.filter((con) => con.targetName !== element.getName());
connection.source.onChange({ ...connection.source.options, connections });
});
// Update scene connection state to clear out old connections
scene.connections.updateState();
}
export const calculateCoordinates = (