mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 10:00:13 +01:00
This commit is contained in:
parent
0384261c95
commit
e8b91ee95b
1 changed files with 5 additions and 1 deletions
|
|
@ -28,7 +28,11 @@ export const reloadSync = (data:{upsertRootIDs: string[], removeRootIDs: string[
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
allModels.graph.forEach(item => {
|
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 => {
|
allModels.outline.forEach(item => {
|
||||||
if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) {
|
if (item.type === "local" && data.removeRootIDs.includes(item.blockId)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue