fix: shift+click to open journal page

This commit is contained in:
Tienson Qin
2020-11-17 16:46:37 +08:00
parent e40a9a7da7
commit 7db20ddc85

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)