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
Copy file name to clipboardExpand all lines: src/app/components/StateRoute/History.tsx
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -318,9 +318,9 @@ function History(props: Record<string, unknown>): JSX.Element {
318
318
makeD3Tree();
319
319
},[root/*, currLocation*/]);// if the 'root' or 'currLocation' changes, re-build the D3 Tree
320
320
321
-
// useEffect(() => {
322
-
// dispatch(setCurrentTabInApp('history')); // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'webmetrics' to facilitate render.
323
-
// }, []);
321
+
useEffect(()=>{
322
+
dispatch(setCurrentTabInApp('history'));// dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'webmetrics' to facilitate render.
323
+
},[]);
324
324
325
325
// then rendering each node in History tab to render using D3, which will share area with LegendKey
// dispatch(setCurrentTabInApp('performance')); // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'performance' to facilitate render.
200
-
// }, [dispatch]);
200
+
useEffect(()=>{
201
+
dispatch(setCurrentTabInApp('performance'));// dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'performance' to facilitate render.
202
+
renderForTutorial();
203
+
},[]);
201
204
202
205
constallRoutes=[];// create allRoutes variable to hold urls
0 commit comments