From 9f3bdc6bf4d0897fc9ec0c96260ac74c60a6f8d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Se=CC=81rgio=20Ramos?= Date: Fri, 28 Jul 2017 18:13:45 +0100 Subject: [PATCH] style(ui-toolkit): lint --- packages/ui-toolkit/src/topology/node/index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/ui-toolkit/src/topology/node/index.js b/packages/ui-toolkit/src/topology/node/index.js index c204746a..835afd2b 100644 --- a/packages/ui-toolkit/src/topology/node/index.js +++ b/packages/ui-toolkit/src/topology/node/index.js @@ -62,9 +62,8 @@ const GraphNode = ({ } : {}; - const nodeContent = !children - ? - : children.reduce( + const nodeContent = children + ? children.reduce( (acc, d, i) => { acc.children.push( @@ -73,7 +72,9 @@ const GraphNode = ({ return acc; }, { y: Constants.contentRect.y, children: [] } - ).children; + ).children + : ; + const nodeShadow = instancesActive ? : null; - return ( + return (6 {nodeShadow}