Moved the recurrent event parsing further down in the function, and now the week-view seems to work fine again

This commit is contained in:
Eli 2021-05-10 13:12:59 +02:00
parent 76c8cbcd96
commit 894ed03ca0
1 changed files with 2 additions and 3 deletions

View File

@ -538,9 +538,6 @@ export default class spservices {
UID: event.UID.replace("{", "").replace("}", ""),
});
}
let parseEvt: parseRecurrentEvent = new parseRecurrentEvent();
events = parseEvt.parseEvents(events, null, null);
return true;
};
//Checks to see if there are any results saved in local storage
@ -563,6 +560,8 @@ export default class spservices {
await mapEvents() ? window.localStorage.setItem("calendarEventsWithLocalTime", JSON.stringify(events)) : null;
}
}
let parseEvt: parseRecurrentEvent = new parseRecurrentEvent();
events = parseEvt.parseEvents(events, null, null);
// Return Data
return events;