From c59179e230baaedf2250e512128a8f9c3c6d0392 Mon Sep 17 00:00:00 2001
From: Julian Leucker <leuckerj@gmail.com>
Date: Fri, 22 Nov 2024 18:28:01 +0100
Subject: [PATCH] Respect preloaded data (fix typo)

---
 .../apps/kolego/frontend/components/AbsenceReasonButtons.vue    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/apps/kolego/frontend/components/AbsenceReasonButtons.vue b/aleksis/apps/kolego/frontend/components/AbsenceReasonButtons.vue
index 66ace3e..ab92f03 100644
--- a/aleksis/apps/kolego/frontend/components/AbsenceReasonButtons.vue
+++ b/aleksis/apps/kolego/frontend/components/AbsenceReasonButtons.vue
@@ -12,7 +12,7 @@ export default {
     absenceReasons: {
       query: gqlAbsenceReasons,
       skip() {
-        return this.customAbsenceReasons > 0;
+        return this.customAbsenceReasons.length > 0;
       },
     },
   },
-- 
GitLab