π 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
Fix sidebar item color null should not be blue
Smaug67399ee547adabf9
diff --git a/frontend/app/components/Sidebar/SidebarItem.vue b/frontend/app/components/Sidebar/SidebarItem.vueindex 3afdb854..fa4442b8 100644--- a/frontend/app/components/Sidebar/SidebarItem.vue+++ b/frontend/app/components/Sidebar/SidebarItem.vue@@ -31,7 +31,8 @@ const categoriesStore = useCategoriesStore();const { isOpened } = useSidebar();const props = defineProps<{ item: Item }>();const customClass = computed(() => {- if ('color' in props.item.data && props.item.data.color != -1) return `item-icon ${getAppColor(props.item.data.color as number)}`;+ if ('color' in props.item.data && props.item.data.color != null && props.item.data.color != -1)+ return `item-icon ${getAppColor(props.item.data.color as number)}`;return '';});const icon = computed(() => {