aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/geofences.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/geofences.js')
-rw-r--r--modern/src/store/geofences.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/store/geofences.js b/modern/src/store/geofences.js
index 504b7d02..f2b7666a 100644
--- a/modern/src/store/geofences.js
+++ b/modern/src/store/geofences.js
@@ -8,12 +8,12 @@ const { reducer, actions } = createSlice({
reducers: {
refresh(state, action) {
state.items = {};
- action.payload.forEach(item => state.items[item['id']] = item);
+ action.payload.forEach((item) => state.items[item.id] = item);
},
update(state, action) {
- action.payload.forEach(item => state.items[item['id']] = item);
+ action.payload.forEach((item) => state.items[item.id] = item);
},
- }
+ },
});
export { actions as geofencesActions };