fix(api): insert block with specific uuid & siblings issue

This commit is contained in:
charlie
2021-05-18 15:45:42 +08:00
committed by Tienson Qin
parent d12c0b0b69
commit 8a8af96d0e

View File

@@ -399,8 +399,8 @@
ref-top-block?
false
(boolean? sibling?)
sibling?
true
(:collapsed (:block/properties current-block))
true
@@ -621,7 +621,7 @@
[content {:keys [page block-uuid sibling? attributes]}]
(when (or page block-uuid)
(when-let [block (if block-uuid
(db/entity [:block/uuid block-uuid])
(db/pull [:block/uuid block-uuid])
(let [page (db/entity [:block/name (string/lower-case page)])
block-uuid (:block/uuid page)
children (:block/_parent page)