diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/App.js | 1 | ||||
-rw-r--r-- | modern/src/CachingController.js | 2 | ||||
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/App.js b/modern/src/App.js index 7f8a5829..5fd10deb 100644 --- a/modern/src/App.js +++ b/modern/src/App.js @@ -29,7 +29,6 @@ import ComputedAttributePage from './settings/ComputedAttributePage'; import MaintenancesPage from './settings/MaintenancesPage'; import MaintenancePage from './settings/MaintenancePage'; import StatisticsPage from './admin/StatisticsPage'; - import CachingController from './CachingController'; const App = () => { diff --git a/modern/src/CachingController.js b/modern/src/CachingController.js index 7adb39b8..fa3b9f6b 100644 --- a/modern/src/CachingController.js +++ b/modern/src/CachingController.js @@ -3,7 +3,6 @@ import { connect } from 'react-redux'; import { geofencesActions } from './store'; import { useEffectAsync } from './reactHelper'; - const CachingController = () => { const authenticated = useSelector(state => !!state.session.user); const dispatch = useDispatch(); @@ -16,6 +15,7 @@ const CachingController = () => { } } }, [authenticated]); + return null; } diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 2478cad0..a14fc930 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -63,7 +63,7 @@ const EventReportPage = () => { const [items, setItems] = useState([]); const formatGeofence = value => { - if (value !== 0) { + if (value > 0) { const geofence = geofences[value]; return geofence ? geofence.name : ''; } |