fix: insert template at wrong pos

This commit is contained in:
rcmerci
2021-04-29 20:06:56 +08:00
parent 99d7ad04a3
commit d4c327e11a

View File

@@ -1769,7 +1769,7 @@
(db/entity [:block/original-name (state/get-current-page)])
(:block/page (db/entity (:db/id (state/get-edit-block)))))
file (:block/file page)]
(when-let [editing-block (state/get-edit-block)]
(when-let [editing-block (db/entity (:db/id (state/get-edit-block)))]
(let [parent (:block/parent editing-block)
left (:block/left editing-block)
sibling? (not= parent left)