Skip to content

Commit

Permalink
fix(editor): missing hierarchy in parent page
Browse files Browse the repository at this point in the history
See-also logseq#7568
  • Loading branch information
andelf committed Dec 2, 2022
1 parent 934ed39 commit 2dfd93b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/frontend/components/hierarchy.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
(let [repo (state/get-current-repo)
aliases (db/get-page-alias-names repo page)
all-page-names (conj aliases page)]
(when-let [page (first (filter text/namespace-page? all-page-names))]
(when-let [page (or (first (filter text/namespace-page? all-page-names))
(when (:block/_namespace (db/entity [:block/name (util/page-name-sanity-lc page)]))
page))]
(let [namespace-pages (db/get-namespace-pages repo page)
parent-routes (db-model/get-page-namespace-routes repo page)
pages (->> (concat namespace-pages parent-routes)
Expand Down

0 comments on commit 2dfd93b

Please sign in to comment.