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;
138
138
children: buildTreeChildren (componentData[child].children ),
139
139
})
140
140
}
141
-
141
+ return treeData
142
+ }
142
143
143
144
function buildTreeChildren (array ) {
144
145
if (array .length === 0 ){
@@ -162,28 +163,9 @@ const componentData = componentMap;
162
163
return outputArray;
163
164
}
164
165
}
165
- <<<<<< < HEAD
166
166
167
167
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
+
187
169
188
170
// data
189
171
treeData .value = buildTree (componentMap .value )
You can’t perform that action at this time.
0 commit comments