Highlight a single unconnected node on hover.

Wasn't happening before.
This commit is contained in:
Simon Howe
2016-01-04 16:37:18 +01:00
parent 14899adb95
commit 3c5e357150

View File

@@ -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);