mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 05:19:35 +00:00
Merge pull request #790 from weaveworks/787-fix-hover-single-node
Highlight a single unconnected node on hover.
This commit is contained in:
@@ -198,9 +198,7 @@ export class AppStore extends Store {
|
||||
getHighlightedNodeIds() {
|
||||
if (mouseOverNodeId) {
|
||||
const adjacency = this.getAdjacentNodes(mouseOverNodeId);
|
||||
if (adjacency.size) {
|
||||
return _.union(adjacency.toJS(), [mouseOverNodeId]);
|
||||
}
|
||||
return _.union(adjacency.toJS(), [mouseOverNodeId]);
|
||||
}
|
||||
if (mouseOverEdgeId) {
|
||||
return mouseOverEdgeId.split(EDGE_ID_SEPARATOR);
|
||||
|
||||
Reference in New Issue
Block a user