preliminary work 644

This commit is contained in:
Hassan Azmi
2020-08-19 18:09:04 -04:00
parent 333b37a139
commit 41a27ff9ef

View File

@@ -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: (
<PopoverMenu locationType="NETWORK" setAddModal={setAddModal}>
<PopoverMenu
locationId='0'
locationType="NETWORK"
setAddModal={setAddModal}
>
Network
</PopoverMenu>
),
@@ -201,7 +205,7 @@ const Network = () => {
};
const locationsTree = useMemo(
() => formatLocationListForTree(data && data.getAllLocations)[0].children,
() => formatLocationListForTree(data && data.getAllLocations),
[data]
);