From 0189819cf450aac488c5b23e550ff233f73e07fe 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);