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

This commit is contained in:
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)