Skip to content

Commit 1c6137c

Browse files
Ji Kimchdavis0917dwejikimjigarxplindenyoung
authored andcommitted
fixed weird conflicting merge issue in tree.vue
Co-authored-by: Chris Davis <[email protected]> Co-authored-by: Ji Kim <[email protected]> Co-authored-by: Jigar Patel <[email protected]> Co-authored-by: Linden Young <[email protected]>
1 parent b9901cf commit 1c6137c

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

src/components/right-sidebar/Tree.vue

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ const componentData = componentMap;
138138
children: buildTreeChildren(componentData[child].children),
139139
})
140140
}
141-
141+
return treeData
142+
}
142143
143144
function buildTreeChildren(array) {
144145
if (array.length === 0){
@@ -162,28 +163,9 @@ const componentData = componentMap;
162163
return outputArray;
163164
}
164165
}
165-
<<<<<<< HEAD
166166
167167
168-
const buildTree = (componentData) => {
169-
//App is always the root of the tree.
170-
const treeData = {
171-
value: 'App',
172-
children: []
173-
}
174-
// console.log(treeData, 'HELLO I AM TREE DATA');
175-
//Views come after the root, as its children. No components will be children of App.
176-
//ONLY Views will have components as children.
177-
for (const child of componentData.App.children){
178-
treeData.children.push({
179-
value: child,
180-
children: buildTreeChildren(componentData[child].children),
181-
})
182-
}
183-
=======
184-
>>>>>>> ji-composition
185-
return treeData;
186-
}
168+
187169
188170
//data
189171
treeData.value = buildTree(componentMap.value)

0 commit comments

Comments
 (0)