[#168] added refresh to temp calendars when updating
This commit is contained in:
committed by
Benoit TELLIER
parent
0f82711d7d
commit
29f984b347
@@ -422,6 +422,11 @@ const CalendarSlice = createSlice({
|
||||
removeTempCal: (state, action: PayloadAction<string>) => {
|
||||
delete state.templist[action.payload];
|
||||
},
|
||||
emptyTempCal: (state) => {
|
||||
Object.keys(state.templist).forEach(
|
||||
(calId) => (state.templist[calId].events = {})
|
||||
);
|
||||
},
|
||||
updateEventLocal: (
|
||||
state,
|
||||
action: PayloadAction<{ calId: string; event: CalendarEvent }>
|
||||
@@ -702,6 +707,7 @@ export const {
|
||||
createCalendar,
|
||||
updateEventLocal,
|
||||
removeTempCal,
|
||||
emptyTempCal,
|
||||
setTimeZone,
|
||||
clearFetchCache,
|
||||
} = CalendarSlice.actions;
|
||||
|
||||
Reference in New Issue
Block a user