🐛 Incorrect reference count after moving doc across notebooks https://github.com/siyuan-note/siyuan/issues/10622

This commit is contained in:
Daniel 2024-03-15 22:53:05 +08:00
parent 9935fc6734
commit 04b61dc7eb
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -393,7 +393,9 @@ func moveTree(tree *parse.Tree) {
tree.Root.RemoveIALAttr("custom-hidden")
filesys.WriteTree(tree)
}
sql.UpsertTreeQueue(tree)
sql.RemoveTreeQueue(tree.ID)
sql.IndexTreeQueue(tree)
box := Conf.Box(tree.Box)
box.renameSubTrees(tree)