From c25c10f7b75ad67dd40b00d63d3336d5d0c6a17a Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Tue, 15 Apr 2025 11:18:26 +0200 Subject: [PATCH] Fixed categories not updating --- components/calendar/category/Table.vue | 4 +--- pages/my/calendars/[id].vue | 7 +++---- stores/CalendarStore.ts | 9 ++++----- 3 files changed, 8 insertions(+), 12 deletions(-) diff --git a/components/calendar/category/Table.vue b/components/calendar/category/Table.vue index f048008..bf22252 100644 --- a/components/calendar/category/Table.vue +++ b/components/calendar/category/Table.vue @@ -6,9 +6,7 @@ const { categories } = defineProps<{ categories: Category[] }>() -const sortedCategories = computed(() => { - return categories.toSorted((a, b) => a.name.localeCompare(b.name)) -}) +const sortedCategories = computed(() => categories.toSorted((a, b) => a.name.localeCompare(b.name)))