aboutsummaryrefslogtreecommitdiff
path: root/modern/src/GeofencesList.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/GeofencesList.js')
-rw-r--r--modern/src/GeofencesList.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/GeofencesList.js b/modern/src/GeofencesList.js
index 572ac5b1..705bdcc3 100644
--- a/modern/src/GeofencesList.js
+++ b/modern/src/GeofencesList.js
@@ -28,11 +28,11 @@ const GeofenceView = ({ onMenuClick }) => {
const classes = useStyles();
const dispatch = useDispatch();
- const items = useSelector((state) => Object.values(state.geofences.items));
+ const items = useSelector((state) => state.geofences.items);
return (
<List className={classes.list}>
- {items.map((item, index, list) => (
+ {Object.values(items).map((item, index, list) => (
<Fragment key={item.id}>
<ListItem button key={item.id} onClick={() => dispatch(devicesActions.select(item))}>
<ListItemText primary={item.name} />