🐛 标题转换文档后编辑原文档触发状态异常 Fix https://github.com/siyuan-note/siyuan/issues/5576
This commit is contained in:
parent
eb823ce35a
commit
e394c36159
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue