mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
5a09669d3a
commit
9474f558ad
2 changed files with 24 additions and 4 deletions
|
|
@ -1253,10 +1253,9 @@ func autoFixIndex() {
|
|||
})
|
||||
|
||||
size := len(paths)
|
||||
for i, p := range paths {
|
||||
if nil == treenode.GetBlockTreeRootByPath(box.ID, p) {
|
||||
reindexTreeByPath(box.ID, p, i, size)
|
||||
}
|
||||
missingPaths := treenode.GetNotExistPaths(box.ID, paths)
|
||||
for i, p := range missingPaths {
|
||||
reindexTreeByPath(box.ID, p, i, size)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue