File tree Expand file tree Collapse file tree 1 file changed +3
-21
lines changed
Expand file tree Collapse file tree 1 file changed +3
-21
lines changed Original file line number Diff line number Diff 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
189171treeData .value = buildTree (componentMap .value )
You can’t perform that action at this time.
0 commit comments