mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
fix(api): insert block with specific uuid & siblings issue
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user