Skip to content

Commit 56f68d8

Browse files
committed
review comments
1 parent 0789980 commit 56f68d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/app/containers/ActionContainer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function ActionContainer() {
2323
let actionsArr = [];
2424
const hierarchyArr:any[] = [];
2525

26-
// 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
26+
// function to traverse state from hiararchy and also getting information on display name and component name
2727
const displayArray = (obj:{stateSnapshot:{children:any[]}, name:number, branch:number, index:number, children?:[]}) => {
2828
if (obj.stateSnapshot.children.length > 0 && obj.stateSnapshot.children[0] && obj.stateSnapshot.children[0].state && obj.stateSnapshot.children[0].name) {
2929
const newObj:Record<string, unknown> = {
@@ -41,7 +41,9 @@ function ActionContainer() {
4141
});
4242
}
4343
};
44-
// 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
44+
// the hierarchy gets set on the first click in the page
45+
// when page in refreshed we may not have a hierarchy so we need to check if hierarchy was initialized
46+
// if true involk displayArray to display the hierarchy
4547
if (hierarchy) displayArray(hierarchy);
4648

4749
// Edwin: handles keyboard presses, function passes an event and index of each action-component

0 commit comments

Comments
 (0)