From e8b91ee95b4de09eeea609ce4450e99c9a4a1c7b Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 25 Apr 2023 18:58:48 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/8098 --- app/src/dialog/processSystem.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/dialog/processSystem.ts b/app/src/dialog/processSystem.ts index 26a375a57..b0ab1ec10 100644 --- a/app/src/dialog/processSystem.ts +++ b/app/src/dialog/processSystem.ts @@ -28,7 +28,11 @@ export const reloadSync = (data:{upsertRootIDs: string[], removeRootIDs: string[ } }) allModels.graph.forEach(item => { - item.searchGraph(false); + if (item.type === "local" && data.removeRootIDs.includes(item.rootId)) { + item.parent.parent.removeTab(item.parent.id, false, false, false); + } else if (item.type !== "local" || data.upsertRootIDs.includes(item.rootId)){ + item.searchGraph(false); + } }) allModels.outline.forEach(item => { if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) {