mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 11:58:49 +01:00
🐛 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:
parent
c804ce77fc
commit
ee7ab26fcd
3 changed files with 31 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue