mirror of https://github.com/logseq/logseq
fix: a.toLowerCase is not a function when expand/collapse
parent
d7bcac85b0
commit
d0f17bf01b
|
@ -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)
|
||||||
|
|
|
@ -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])))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue