diff --git a/frontend/src/components/Dashboard/ServiceTreeView.vue b/frontend/src/components/Dashboard/ServiceTreeView.vue index ab23816f..3aaa329a 100644 --- a/frontend/src/components/Dashboard/ServiceTreeView.vue +++ b/frontend/src/components/Dashboard/ServiceTreeView.vue @@ -142,9 +142,7 @@ const getRootNodes = (data) => { const getTreeData = (parentServices, serviceStatus) => { const treeData = []; - for (let i=0; i { if (!parentService.sub_services_detail) { treeData.push({ parent: parentService, children: [] }); } else { @@ -162,7 +160,8 @@ const getTreeData = (parentServices, serviceStatus) => { treeData.push({ parent: parentService, children }); } - } + }); + return treeData; }; diff --git a/frontend/src/components/Elements/TreeItem.vue b/frontend/src/components/Elements/TreeItem.vue index 624d1bd0..c94c037d 100644 --- a/frontend/src/components/Elements/TreeItem.vue +++ b/frontend/src/components/Elements/TreeItem.vue @@ -124,12 +124,12 @@ ul, li { .list-child { margin-left: 13px; - position: relative; min-width: 195px; } .list-child li { padding: 0 0 0 28px; + position: relative; } .list-child li::before {