diff options
author | Anton Tananaev <anton@traccar.org> | 2022-04-17 13:33:27 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-04-17 13:33:27 -0700 |
commit | 6505a13e0037d5de5737e940907cc62c4a9107bc (patch) | |
tree | c4b4ceeb0a8b4bd7b688ca4c6f1fd59834cc9f6f /modern/src/GeofencesList.js | |
parent | e470eeb4fcc923bc54968a6561f66c75dab288b9 (diff) | |
download | trackermap-web-6505a13e0037d5de5737e940907cc62c4a9107bc.tar.gz trackermap-web-6505a13e0037d5de5737e940907cc62c4a9107bc.tar.bz2 trackermap-web-6505a13e0037d5de5737e940907cc62c4a9107bc.zip |
Refactor settings layout
Diffstat (limited to 'modern/src/GeofencesList.js')
-rw-r--r-- | modern/src/GeofencesList.js | 4 |
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} /> |