Browse Source

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
Tienson Qin 4 years ago
parent
commit
94d185b6f2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/editor.cljs

+ 1 - 1
src/main/frontend/handler/editor.cljs

@@ -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))