fix: new page doesn't have block/uuid

This commit is contained in:
Tienson Qin
2023-06-14 17:29:55 +08:00
parent 0f1cbb3bc7
commit 32173ff95e
5 changed files with 17 additions and 14 deletions

View File

@@ -70,7 +70,7 @@ and handles unexpected failure."
([block]
(parse-block block nil))
([{:block/keys [uuid content format] :as block} {:keys [with-id?]
:or {with-id? true}}]
:or {with-id? true}}]
(when-not (string/blank? content)
(let [block (dissoc block :block/pre-block?)
ast (format/to-edn content format nil)