diff --git a/kernel/api/block_op.go b/kernel/api/block_op.go index 1d58fb9af..718886a2d 100644 --- a/kernel/api/block_op.go +++ b/kernel/api/block_op.go @@ -706,8 +706,8 @@ func updateBlock(c *gin.Context) { if nil != tree.Root.FirstChild { tree.Root.FirstChild.SetIALAttr("id", id) } else { - logging.LogWarnf("tree root has no child node when updating block [id=%s]", id) - return + logging.LogWarnf("tree root has no child node, append empty paragraph node") + tree.Root.AppendChild(treenode.NewParagraph(id)) } data = luteEngine.Tree2BlockDOM(tree, luteEngine.RenderOptions, luteEngine.ParseOptions)