We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 569dc72 + 58925e5 commit 9817e3eCopy full SHA for 9817e3e
web/src/components/MetricsPage.tsx
@@ -327,17 +327,6 @@ export const ToggleGraph: React.FC = () => {
327
328
const dispatch = useDispatch();
329
const toggle = React.useCallback(() => dispatch(toggleGraphs()), [dispatch]);
330
- // Use an empty useEffect to get access to the cleanup function so that if graphs are
331
- // currently hidden then we toggle one more time as we unmount
332
- React.useEffect(
333
- () => () => {
334
- if (hideGraphs) {
335
- toggle();
336
- }
337
- },
338
- // eslint-disable-next-line react-hooks/exhaustive-deps
339
- [hideGraphs],
340
- );
341
342
// Use an empty useEffect to get access to the cleanup function so that if graphs are
343
// currently hidden then we show the graphs as we unmount
0 commit comments