mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Reduce the probability of tree not found when deleting/renaming tags https://github.com/siyuan-note/siyuan/issues/14591
This commit is contained in:
parent
b66558059d
commit
6c60a3726f
2 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue