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 default view selection

Smaug67394437bef8b1ff
diff --git a/frontend/app/components/Node/NodeList.vue b/frontend/app/components/Node/NodeList.vue
index ce7945ca..f0531055 100644
--- a/frontend/app/components/Node/NodeList.vue
+++ b/frontend/app/components/Node/NodeList.vue
@@ -114,9 +114,8 @@ watch(
onMounted(() => {
const storedView = localStorage.getItem('viewSelection');
- if (storedView) {
- view.value = storedView as ViewMode;
- }
+ if (storedView && ['table', 'list', 'kanban'].includes(storedView)) view.value = storedView as ViewMode;
+ else view.value = 'table';
});
const openPermissionsModal = () => {