Fixed categories not updating

This commit is contained in:
Alexis
2025-04-15 11:18:26 +02:00
parent f00e049f76
commit c25c10f7b7
3 changed files with 8 additions and 12 deletions

View File

@@ -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)))
</script>
<template>