You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed as I was testing #1004 that when I download and import custom events, I get a lot of duplicate events. If I select 5 days out of the week, I get 5 copies of the same event on the days I select.
Console Logs
I looked into it more and noticed this in the code when I added console.log(event) after if (event.isCustomEvent) {, I found this. My assumption is that because there are multiple events all with the same customEventID that are going to get the recurrence rule added later on in the code, we get multiple events.
Attempted Solution
I tried to solve this by ensuring there are only unique customEventIDs in the array.
Although this solved the issue, I feel like there's a better way to figure this out. I'm not familiar enough with the code base to figure it out at the moment though.
The text was updated successfully, but these errors were encountered:
Summary
I noticed as I was testing #1004 that when I download and import custom events, I get a lot of duplicate events. If I select 5 days out of the week, I get 5 copies of the same event on the days I select.
Console Logs
I looked into it more and noticed this in the code when I added
console.log(event)
afterif (event.isCustomEvent) {
, I found this. My assumption is that because there are multiple events all with the samecustomEventID
that are going to get the recurrence rule added later on in the code, we get multiple events.Attempted Solution
I tried to solve this by ensuring there are only unique
customEventID
s in the array.Although this solved the issue, I feel like there's a better way to figure this out. I'm not familiar enough with the code base to figure it out at the moment though.
The text was updated successfully, but these errors were encountered: