🐛 After the document is transferred to the heading, occurs two copies of the reference block Fix https://github.com/siyuan-note/siyuan/issues/7819

This commit is contained in:
Liang Ding
2023-03-29 19:38:03 +08:00
parent 8ddf8fc764
commit cc35ec2998
3 changed files with 31 additions and 1 deletions

View File

@@ -134,6 +134,10 @@ func Doc2Heading(srcID, targetID string, after bool) (srcTreeBox, srcTreePath st
return
}
// 移动前先删除引用 https://github.com/siyuan-note/siyuan/issues/7819
sql.DeleteRefsTreeQueue(srcTree)
sql.DeleteRefsTreeQueue(targetTree)
if ast.NodeListItem == pivot.Type {
pivot = pivot.LastChild
}