fix: a.toLowerCase is not a function when expand/collapse

pull/2127/head
Tienson Qin 2021-06-08 09:26:12 +08:00
parent d7bcac85b0
commit d0f17bf01b
2 changed files with 3 additions and 3 deletions

View File

@ -2818,7 +2818,8 @@
{:block b :level 2}
{:block e :level 2}]"
[{:keys [collapse?] :or {collapse? false}}]
(let [page (state/get-current-page)]
(when-let [page (or (state/get-current-page)
(date/today))]
(->>
(-> page
(db/get-page-blocks-no-cache)

View File

@ -141,8 +141,7 @@
(defn get-current-page
[]
(and
(= :page (get-current-route))
(when (= :page (get-current-route))
(get-in (get-route-match)
[:path-params :name])))