🐛 标题转换文档后编辑原文档触发状态异常 Fix https://github.com/siyuan-note/siyuan/issues/5576

This commit is contained in:
Liang Ding 2022-08-05 22:39:36 +08:00
parent eb823ce35a
commit e394c36159
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -95,7 +95,9 @@ func ListItem2Doc(srcListItemID, targetBoxID, targetPath string) (srcRootBlockID
srcLiParent.Unlink()
}
srcTree.Root.SetIALAttr("updated", util.CurrentTimeSecondsStr())
if nil == srcTree.Root.FirstChild {
srcTree.Root.AppendChild(protyle.NewParagraph())
}
if err = indexWriteJSONQueue(srcTree); nil != err {
return "", "", err
}