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 nodes update state

Smaug67390fc6fe7573ca
diff --git a/frontend/app/stores/nodes.store.ts b/frontend/app/stores/nodes.store.ts
index 53921385..f4a0bf7a 100644
--- a/frontend/app/stores/nodes.store.ts
+++ b/frontend/app/stores/nodes.store.ts
@@ -319,6 +319,7 @@ export const useNodesStore = defineStore('nodes', {
}
const request = await makeRequest(`nodes/${node.id}`, 'PUT', node);
if (request.status == 'success') {
+ node.updated_timestamp = Date.now(); // approximate update time for better UX & backups import
this.nodes.set(node.id, node);
return this.nodes;
} else throw request.message;