π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Optimisations
Smaug673929131b19efb8
diff --git a/frontend/app/components/Sidebar/Search.vue b/frontend/app/components/Sidebar/Search.vueindex 6bb9370e..3a388de3 100644--- a/frontend/app/components/Sidebar/Search.vue+++ b/frontend/app/components/Sidebar/Search.vue@@ -18,9 +18,11 @@</template><script setup lang="ts">+const categoryStore = useCategoriesStore();+const documents = computed(() => useDocumentsStore().getAll.filter(c => c.name.toLowerCase().includes(filter.value.toLowerCase()) || c.tags?.toLowerCase().includes(filter.value.toLowerCase())));const categoryName = (id: string = '') => {- const category = useCategoriesStore().getById(id);+ const category = categoryStore.getById(id);if (category) return `<tag ${getAppColor(category.color)}>${category.name}</tag>`;return '';};