Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

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

Liang Ding872378dded60
diff --git a/kernel/model/listitem.go b/kernel/model/listitem.go
index 409ee88a34..b28902ba41 100644
--- a/kernel/model/listitem.go
+++ b/kernel/model/listitem.go
@@ -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
}