aboutsummaryrefslogtreecommitdiff
path: root/modern/src/store/calendars.js
diff options
context:
space:
mode:
Diffstat (limited to 'modern/src/store/calendars.js')
-rw-r--r--modern/src/store/calendars.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/store/calendars.js b/modern/src/store/calendars.js
index 924288e6..2d92c004 100644
--- a/modern/src/store/calendars.js
+++ b/modern/src/store/calendars.js
@@ -6,7 +6,8 @@ const { reducer, actions } = createSlice({
items: {},
},
reducers: {
- update(state, action) {
+ refresh(state, action) {
+ state.items = {};
action.payload.forEach((item) => state.items[item.id] = item);
},
},