🐛 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 c804ce77fc
commit ee7ab26fcd
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
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
}