fix: breadcrumb not showing if a block hasn't been fetched from

db worker.
This commit is contained in:
Tienson Qin
2024-09-10 17:35:20 +08:00
parent 7b18a9e055
commit d54c87629c
2 changed files with 4 additions and 2 deletions

View File

@@ -246,7 +246,7 @@
{:icon icon
:icon-theme :gray
:text (highlight-content-query text @!input)
:header (when-not (ldb/object? block) (block/breadcrumb {:search? true} repo id {}))
:header (when-not (db/page? block) (block/breadcrumb {:search? true} repo id {}))
:current-page? (when-let [page-id (:block/page block)]
(= page-id (:block/uuid current-page)))
:source-block block}))