Skip to content

Commit

Permalink
Fix: list hidden shared calendars correctly
Browse files Browse the repository at this point in the history
Signed-off-by: Hamza Mahjoubi <[email protected]>
  • Loading branch information
hamza221 authored and backportbot[bot] committed Aug 19, 2024
1 parent a987c4b commit 86b6ef1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/AppNavigation/CalendarList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ export default {
}
this.calendars.forEach((calendar) => {
if (!calendar.enabled) {
sortedCalendars.hidden.push(calendar)
return
}
if (calendar.isSharedWithMe) {
sortedCalendars.shared.push(calendar)
return
Expand All @@ -150,11 +155,6 @@ export default {
return
}
if (!calendar.enabled) {
sortedCalendars.hidden.push(calendar)
return
}
sortedCalendars.personal.push(calendar)
})
Expand Down

0 comments on commit 86b6ef1

Please sign in to comment.