File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ export interface TreeProps {
32
32
state ?: string | object ;
33
33
stateSnaphot ?: object ;
34
34
children ?: any [ ] ;
35
+ snapshots ?:[ ] ;
36
+ currLocation ?:object ;
37
+
38
+
35
39
} ;
36
40
}
37
41
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ const Tree = (props: TreeProps) => {
40
40
useEffect ( ( ) => {
41
41
dispatch ( setCurrentTabInApp ( 'tree' ) ) ;
42
42
} , [ ] ) ;
43
-
43
+ console . log ( snapshots ) ;
44
+ console . log ( currLocation ) ;
44
45
return (
45
46
< >
46
47
{ snapshot && (
47
48
< JSONTree
48
- data = { snapshots [ currLocation [ 'index' ] ] || snapshot }
49
- // data={snapshot}
49
+ data = { snapshots [ currLocation . index ] || snapshot }
50
50
theme = { { extend : colors , tree : ( ) => ( { className : 'json-tree' } ) } }
51
51
shouldExpandNode = { ( ) => true }
52
52
getItemString = { getItemString }
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ const radialGraph = (props) => {
88
88
} ,
89
89
} ;
90
90
91
- // This updates currentTabInApp which is used to determine what tutorial to display (depending on the active tab within Reactime)
92
- // Code is commented out because it interferes with the testing suite
93
91
const [ store , dispatch ] = useStoreContext ( ) ;
94
92
useEffect ( ( ) => {
95
93
dispatch ( setCurrentTabInApp ( 'webmetrics' ) ) ;
You can’t perform that action at this time.
0 commit comments