🐛 文档转换标题后文档树刷新不正确 https://github.com/siyuan-note/siyuan/issues/7435

This commit is contained in:
Liang Ding 2023-02-22 09:15:24 +08:00
parent 0cb20273fa
commit 872378dded
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -98,6 +98,7 @@ func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID
if nil == srcTree.Root.FirstChild {
srcTree.Root.AppendChild(treenode.NewParagraph())
}
treenode.RemoveBlockTreesByRootID(srcTree.ID)
if err = indexWriteJSONQueue(srcTree); nil != err {
return "", "", err
}