mirror of
https://github.com/logseq/logseq.git
synced 2026-05-03 02:16:30 +00:00
fix: should not remove child block
This commit is contained in:
@@ -76,7 +76,10 @@
|
||||
:block/whiteboard? true
|
||||
:block/properties (dissoc tldr-data :shapes)}
|
||||
;; todo: use get-paginated-blocks instead?
|
||||
existing-blocks (model/get-page-blocks-no-cache page-name)
|
||||
existing-blocks (model/get-page-blocks-no-cache (state/get-current-repo)
|
||||
page-name
|
||||
{:pull-keys '[:block/uuid
|
||||
{:block/parent [:block/uuid]}]})
|
||||
shapes (:shapes tldr-data)
|
||||
blocks (mapv #(shape->block % page-name) shapes)
|
||||
block-ids (->> shapes
|
||||
|
||||
Reference in New Issue
Block a user