From 7ea6c81b4d4d7f1f9847528567f23f4dc9d7076d Mon Sep 17 00:00:00 2001 From: codetypes Date: Thu, 8 May 2025 14:19:52 +0800 Subject: [PATCH] fix subtree not updated --- src/components/graph.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/graph.ts b/src/components/graph.ts index 0b0558b..22cfa1b 100644 --- a/src/components/graph.ts +++ b/src/components/graph.ts @@ -1001,6 +1001,8 @@ export class Graph { } as TreeData; fs.writeFileSync(subpath, JSON.stringify(subtreeModel, null, 2)); data.path = workspace.relative(subpath); + this._graph.updateNodeData([node]); + this.editor.data.root = this._nodeToData("1"); await this.refresh(); this._storeHistory(); }