You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// gabi and nate :: delete function to traverse state from snapshots, now we are tranversing state from hiararchy and alsog getting infromation on display name and component name
// gabi and nate :: delete function to traverse state from snapshots, now we are tranversing state from hiararchy and alsog getting infromation on display name and component name
// gabi :: the hierarchy get set on the first click in the page, when page in refreshed we don't have a hierarchy so we need to check if hierarchy was inicialize involk displayArray to display the hierarchy
39
-
if(hierarchy)displayArray(hierarchy)
40
-
// console.log('this is hierarchyArr', hierarchyArr)
31
+
hierarchyArr.push(newObj)
32
+
if(obj.children){
33
+
obj.children.forEach((element)=>{
34
+
displayArray(element)
35
+
})
36
+
}
37
+
}
38
+
// gabi :: the hierarchy get set on the first click in the page, when page in refreshed we don't have a hierarchy so we need to check if hierarchy was inicialize involk displayArray to display the hierarchy
39
+
if(hierarchy)displayArray(hierarchy)
40
+
// console.log('this is hierarchyArr', hierarchyArr)
41
+
42
+
// Edwin: handles keyboard presses, function passes an event and index of each action-component
0 commit comments