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

This commit is contained in:
Nathan Marrs 2024-05-03 15:17:05 -06:00 committed by GitHub
parent 386baf83cd
commit 68fa2110d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -322,6 +322,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 = (