fix subtree not updated

This commit is contained in:
codetypes committed 2025-05-08 14:19:52 +08:00
1 parent 4c6796a399
commit 7ea6c81b4d
1 file changed
+2
+2
View File
@@ -1001,6 +1001,8 @@ export class Graph {
} as TreeData; } as TreeData;
fs.writeFileSync(subpath, JSON.stringify(subtreeModel, null, 2)); fs.writeFileSync(subpath, JSON.stringify(subtreeModel, null, 2));
data.path = workspace.relative(subpath); data.path = workspace.relative(subpath);
this._graph.updateNodeData([node]);
this.editor.data.root = this._nodeToData("1");
await this.refresh(); await this.refresh();
this._storeHistory(); this._storeHistory();
} }