fix: tree style

pull/1097/head
smit95tpatel 2022-03-10 16:50:28 +05:30
parent c163cca708
commit fbfe046c55
2 changed files with 4 additions and 5 deletions

View File

@ -142,9 +142,7 @@ const getRootNodes = (data) => {
const getTreeData = (parentServices, serviceStatus) => { const getTreeData = (parentServices, serviceStatus) => {
const treeData = []; const treeData = [];
for (let i=0; i<parentServices.length; i++) { parentServices.forEach((parentService) => {
const parentService = parentServices[i];
if (!parentService.sub_services_detail) { if (!parentService.sub_services_detail) {
treeData.push({ parent: parentService, children: [] }); treeData.push({ parent: parentService, children: [] });
} else { } else {
@ -162,7 +160,8 @@ const getTreeData = (parentServices, serviceStatus) => {
treeData.push({ parent: parentService, children }); treeData.push({ parent: parentService, children });
} }
} });
return treeData; return treeData;
}; };

View File

@ -124,12 +124,12 @@ ul, li {
.list-child { .list-child {
margin-left: 13px; margin-left: 13px;
position: relative;
min-width: 195px; min-width: 195px;
} }
.list-child li { .list-child li {
padding: 0 0 0 28px; padding: 0 0 0 28px;
position: relative;
} }
.list-child li::before { .list-child li::before {