mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user