fix: introduce more page-name sanity

This commit is contained in:
Junyi Du
2022-01-07 02:31:08 +08:00
committed by Tienson Qin
parent 43da23eecd
commit 7505b0dde6
14 changed files with 45 additions and 45 deletions

View File

@@ -85,7 +85,7 @@
:href (rfe/href :page {:name page})
:on-click (fn [e]
(when (gobj/get e "shiftKey")
(when-let [page (db/entity [:block/name (string/lower-case page)])]
(when-let [page (db/entity [:block/name (util/page-name-sanity-lc page)])]
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id page)