diff --git a/x-pack/plugins/apm/public/components/app/ServiceMap/use_cytoscape_event_handlers.ts b/x-pack/plugins/apm/public/components/app/ServiceMap/use_cytoscape_event_handlers.ts index a9125a13fc6fd..a2b229780ead0 100644 --- a/x-pack/plugins/apm/public/components/app/ServiceMap/use_cytoscape_event_handlers.ts +++ b/x-pack/plugins/apm/public/components/app/ServiceMap/use_cytoscape_event_handlers.ts @@ -147,7 +147,7 @@ export function useCytoscapeEventHandlers({ }; const selectHandler: cytoscape.EventHandler = (event) => { trackApmEvent({ metric: 'service_map_node_select' }); - resetConnectedEdgeStyle(event.target); + resetConnectedEdgeStyle(event.cy, event.target); }; const unselectHandler: cytoscape.EventHandler = (event) => { resetConnectedEdgeStyle(