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 home sort documents conflict with sidebar

Smaug6739a234e1582b5e
diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vue
index 53f9d91e..03f95f85 100644
--- a/frontend/app/pages/dashboard/home.vue
+++ b/frontend/app/pages/dashboard/home.vue
@@ -28,7 +28,7 @@ const results = computed(() => {
});
const recentDocuments = computed(() => {
return documentsStore.getAll
- .sort((a, b) => {
+ .toSorted((a, b) => {
return parseInt(b.updated_timestamp) - parseInt(a.updated_timestamp);
})
.slice(0, 3);