From 3c5e3571508786218d758ec3de3202b8622eb6a6 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Mon, 4 Jan 2016 16:37:18 +0100 Subject: [PATCH] Highlight a single unconnected node on hover. Wasn't happening before. --- client/app/scripts/stores/app-store.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/app/scripts/stores/app-store.js b/client/app/scripts/stores/app-store.js index db0f837e7d..65fae450b4 100644 --- a/client/app/scripts/stores/app-store.js +++ b/client/app/scripts/stores/app-store.js @@ -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);