fix: Collapse all collapses the whole zoomed in hierarchy

Instead of just below the clicked bullet.

Related to https://github.com/logseq/logseq/issues/3734#issuecomment-1005003877
This commit is contained in:
Tienson Qin
2022-01-05 10:15:32 +08:00
parent 704bcda9ad
commit 94d185b6f2

View File

@@ -3335,7 +3335,7 @@
(when-let [page (or (state/get-current-page)
(date/today))]
(let [block? (util/uuid-string? page)
block-id (or (and block? (uuid page)) root-block)
block-id (or root-block (and block? (uuid page)))
blocks (if block-id
(db/get-block-and-children (state/get-current-repo) block-id)
(db/get-page-blocks-no-cache page))