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 b :level 2}
{:block e :level 2}]" {:block e :level 2}]"
[{:keys [collapse?] :or {collapse? false}}] [{:keys [collapse?] :or {collapse? false}}]
(let [page (state/get-current-page)] (when-let [page (or (state/get-current-page)
(date/today))]
(->> (->>
(-> page (-> page
(db/get-page-blocks-no-cache) (db/get-page-blocks-no-cache)

View File

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