fix: pasting in journal page generate empty file

pull/1672/head
rcmerci 2021-04-15 17:53:04 +08:00
parent dfc4516671
commit a96d65a00f
1 changed files with 1 additions and 1 deletions

View File

@ -2264,7 +2264,7 @@
(let [repo (state/get-current-repo)
page (or (db/entity [:block/name (state/get-current-page)])
(db/entity [:block/original-name (state/get-current-page)])
(:block/page (state/get-edit-block)))
(:block/page (db/entity (:db/id(state/get-edit-block)))))
file (:block/file page)
copied-blocks (state/get-copied-blocks)
copied-block-tree (:copy/block-tree copied-blocks)]