From 41a27ff9ef0d30a86f40ca26f29d30b887f682e0 Mon Sep 17 00:00:00 2001 From: Hassan Azmi Date: Wed, 19 Aug 2020 18:09:04 -0400 Subject: [PATCH] preliminary work 644 --- app/containers/Network/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/containers/Network/index.js b/app/containers/Network/index.js index 1d3a2c2..d899574 100644 --- a/app/containers/Network/index.js +++ b/app/containers/Network/index.js @@ -51,7 +51,7 @@ const Network = () => { }; const formatLocationListForTree = (list = []) => { - const checkedTreeLocations = []; + const checkedTreeLocations = ['0']; list.forEach(ele => { checkedTreeLocations.push(ele.id); }); @@ -91,7 +91,11 @@ const Network = () => { return [ { title: ( - + Network ), @@ -201,7 +205,7 @@ const Network = () => { }; const locationsTree = useMemo( - () => formatLocationListForTree(data && data.getAllLocations)[0].children, + () => formatLocationListForTree(data && data.getAllLocations), [data] );