fix: shift+click to open journal page

pull/674/head
Tienson Qin 2020-11-17 16:46:37 +08:00
parent e40a9a7da7
commit 7db20ddc85
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@
:on-click (fn [e]
(util/stop e)
(when (gobj/get e "shiftKey")
(when-let [page (db/pull [:page/name title])]
(when-let [page (db/pull [:page/name (string/lower-case title)])]
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id page)