[#7] restored refresh after modification
This commit is contained in:
@@ -77,7 +77,6 @@ export const putEventAsync = createAsyncThunk<
|
||||
new Date(new Date(newEvent.start).getTime() + 86400000)
|
||||
),
|
||||
})) as Record<string, any>;
|
||||
console.log(calEvents)
|
||||
const events: CalendarEvent[] = calEvents._embedded["dav:item"].flatMap(
|
||||
(eventdata: any) => {
|
||||
const vevents = eventdata.data[2] as any[][];
|
||||
|
||||
@@ -13,7 +13,7 @@ export async function putEvent(event: CalendarEvent) {
|
||||
if (response.status === 201) {
|
||||
console.log("PUT (201) :", response.url);
|
||||
}
|
||||
return await response.json();
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function deleteEvent(eventURL: string) {
|
||||
|
||||
Reference in New Issue
Block a user