π 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 cache deletion when deleting parent
Smaug67396a076061153c
diff --git a/frontend/app/stores/nodes.store.ts b/frontend/app/stores/nodes.store.tsindex fa43cbda..9c170035 100644--- a/frontend/app/stores/nodes.store.ts+++ b/frontend/app/stores/nodes.store.ts@@ -249,8 +249,11 @@ export const useNodesStore = defineStore('nodes', {},async delete(id: string) {const request = await makeRequest(`nodes/${id}`, 'DELETE', {});- if (request.status == 'success') return this.nodes.delete(id);- else throw request.message;+ if (request.status == 'success') {+ const allChildrens = this.getAllChildrensIds(id);+ this.nodes.delete(id);+ allChildrens.forEach(childId => this.nodes.delete(childId));+ } else throw request.message;},},});