feat: showing single block for blocks

This commit is contained in:
Peng Xiao
2022-07-26 18:05:22 +08:00
parent 2d64b55b64
commit 0a2688de83
9 changed files with 75 additions and 13 deletions

View File

@@ -83,7 +83,7 @@ and handles unexpected failure."
body (vec (if title (rest ast) ast))
body (drop-while gp-property/properties-ast? body)
result (cond->
(if (seq body) {:block/body body} {})
(if (seq body) {:block/body body} {})
title
(assoc :block/title title))]
(state/add-block-ast-cache! block-uuid content result)