From 151e27a3829d0dda700f45571e1cc4693bbd90f8 Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Wed, 14 Aug 2024 12:02:57 +0200 Subject: [PATCH] Fix: list hidden shared calendars correctly Signed-off-by: Hamza Mahjoubi --- src/components/AppNavigation/CalendarList.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/AppNavigation/CalendarList.vue b/src/components/AppNavigation/CalendarList.vue index 256978f27..b237ba72a 100644 --- a/src/components/AppNavigation/CalendarList.vue +++ b/src/components/AppNavigation/CalendarList.vue @@ -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 @@ -150,11 +155,6 @@ export default { return } - if (!calendar.enabled) { - sortedCalendars.hidden.push(calendar) - return - } - sortedCalendars.personal.push(calendar) })