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 {
3232 state ?: string | object ;
3333 stateSnaphot ?: object ;
3434 children ?: any [ ] ;
35+ snapshots ?:[ ] ;
36+ currLocation ?:object ;
37+
38+
3539 } ;
3640}
3741
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ const Tree = (props: TreeProps) => {
4040 useEffect ( ( ) => {
4141 dispatch ( setCurrentTabInApp ( 'tree' ) ) ;
4242 } , [ ] ) ;
43-
43+ console . log ( snapshots ) ;
44+ console . log ( currLocation ) ;
4445 return (
4546 < >
4647 { snapshot && (
4748 < JSONTree
48- data = { snapshots [ currLocation [ 'index' ] ] || snapshot }
49- // data={snapshot}
49+ data = { snapshots [ currLocation . index ] || snapshot }
5050 theme = { { extend : colors , tree : ( ) => ( { className : 'json-tree' } ) } }
5151 shouldExpandNode = { ( ) => true }
5252 getItemString = { getItemString }
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ const radialGraph = (props) => {
8888 } ,
8989 } ;
9090
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
9391 const [ store , dispatch ] = useStoreContext ( ) ;
9492 useEffect ( ( ) => {
9593 dispatch ( setCurrentTabInApp ( 'webmetrics' ) ) ;
You can’t perform that action at this time.
0 commit comments