File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,10 @@ import 'antd/dist/antd.less';
77import './App.global.less' ;
88
99export default observer ( ( ) => {
10+ // useEffect(() => {
11+ // Sentry.captureException(new Error(`${process.env.NODE_ENV} exception`));
12+ // }, []);
13+
1014 return (
1115 < Router >
1216 < Main />
Original file line number Diff line number Diff line change 1- import React , { useEffect , useMemo , useState } from 'react' ;
1+ import React , { useMemo , useState } from 'react' ;
22import { Layout , Space } from 'antd' ;
33import { observer } from 'mobx-react' ;
4- import * as Sentry from '@sentry/electron' ;
54
65import rootStore from '../../modules/RootStore' ;
76import HoursCard from './components/HoursCard/HoursCard' ;
@@ -39,10 +38,6 @@ export default observer(function HoursView() {
3938 const tasks = useMemo ( ( ) => tasksStore . getTasksByDate ( date ) , [ date ] ) ;
4039 const timeItems = getTimeItems ( tasks , date ) ;
4140
42- useEffect ( ( ) => {
43- Sentry . captureException ( new Error ( `${ process . env . NODE_ENV } exception` ) ) ;
44- } , [ ] ) ;
45-
4641 return (
4742 < Layout className = { classes . hours } >
4843 < Space direction = "vertical" >
You can’t perform that action at this time.
0 commit comments