diff --git a/kernel/model/listitem.go b/kernel/model/listitem.go index 8b1c4b798..c94c6e8d7 100644 --- a/kernel/model/listitem.go +++ b/kernel/model/listitem.go @@ -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 }