fix: can't click breadcrumbs

pull/1969/head
Tienson Qin 2021-05-21 21:09:37 +08:00
parent ab8c8f47ae
commit b929f02d20
1 changed files with 4 additions and 1 deletions

View File

@ -1623,7 +1623,10 @@
(let [parents (doall (let [parents (doall
(for [{:block/keys [uuid title name]} parents] (for [{:block/keys [uuid title name]} parents]
(when-not name ; not page (when-not name ; not page
[:a {:href (rfe/href :page {:name uuid})} [:a {:on-mouse-down (fn [e]
(util/stop e)
(route-handler/redirect! {:to :page
:path-params {:name uuid}}))}
(map-inline config title)]))) (map-inline config title)])))
parents (remove nil? parents)] parents (remove nil? parents)]
(reset! parents-atom parents) (reset! parents-atom parents)