🎨 Reduce the probability of tree not found when deleting/renaming tags https://github.com/siyuan-note/siyuan/issues/14591

This commit is contained in:
Daniel 2025-04-13 17:47:40 +08:00
parent b66558059d
commit 6c60a3726f
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 6 additions and 7 deletions

View file

@ -53,7 +53,7 @@ func RemoveTag(label string) (err error) {
updateNodes := map[string]*ast.Node{}
for treeID, blocks := range treeBlocks {
util.PushEndlessProgress("[" + treeID + "]")
tree, e := LoadTreeByBlockID(treeID)
tree, e := LoadTreeByBlockIDWithReindex(treeID)
if nil != e {
util.ClearPushProgress(100)
return e
@ -154,7 +154,7 @@ func RenameTag(oldLabel, newLabel string) (err error) {
for treeID, blocks := range treeBlocks {
util.PushEndlessProgress("[" + treeID + "]")
tree, e := LoadTreeByBlockID(treeID)
tree, e := LoadTreeByBlockIDWithReindex(treeID)
if nil != e {
util.ClearPushProgress(100)
return e