fix: wrong arguments order

pull/1735/head
Tienson Qin 2021-04-30 18:51:12 +08:00
parent 0c758fc268
commit d3a5a35c03
1 changed files with 7 additions and 7 deletions

View File

@ -1814,9 +1814,9 @@
[new-content new-title])
[(:block/content %) (:block/title %)])
new-content
(-> new-content
(text/remove-property! format "id")
(text/remove-property! format "custom_id"))]
(->> new-content
(text/remove-property! format "id")
(text/remove-property! format "custom_id"))]
(conj {:block/uuid uuid
:block/page (select-keys page [:db/id])
:block/file (select-keys file [:db/id])
@ -1855,10 +1855,10 @@
tree (blocks-vec->tree (vals level-blocks-map))]
(paste-block-tree-at-point tree [:template :including-parent]
(fn [content]
(-> content
(text/remove-property! format "template")
(text/remove-property! format "including-parent")
template/resolve-dynamic-template!)))
(->> content
(text/remove-property! format "template")
(text/remove-property! format "including-parent")
template/resolve-dynamic-template!)))
(clear-when-saved!)
(insert-command! id "" format {})
(db/refresh! repo {:key :block/insert :data [(db/pull db-id)]}))