Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix typing

Smaug67393720a4c2fd16
diff --git a/frontend/app/pages/dashboard/settings/_views/preferences.vue b/frontend/app/pages/dashboard/settings/_views/preferences.vue
index 6436054f..67c45a65 100644
--- a/frontend/app/pages/dashboard/settings/_views/preferences.vue
+++ b/frontend/app/pages/dashboard/settings/_views/preferences.vue
@@ -72,6 +72,7 @@ const options: Array<{ label: string; options: Option[] }> = [
label: 'Enable Dark Mode',
type: 'toggle',
key: 'darkMode',
+ // @ts-expect-error -> specific type
onChange: (option: boolean) => {
colorMode.preference = option ? 'dark' : 'light';
document.body.style.colorScheme = colorMode.preference;
@@ -81,6 +82,7 @@ const options: Array<{ label: string; options: Option[] }> = [
label: 'Choose primary color',
type: 'color',
key: 'primaryColor',
+ // @ts-expect-error -> specific type
onChange: (option: number) => {
setAppColor(option);
},