mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
fix: regression on distinguishing tagged blocks on sidebar
related to LOG-3214. Also create helper for common uses of object?
This commit is contained in:
@@ -241,13 +241,12 @@
|
||||
(defn- block-item
|
||||
[repo block current-page !input]
|
||||
(let [id (:block/uuid block)
|
||||
object? (seq (:block/tags block))
|
||||
text (title/block-unique-title block)
|
||||
icon "letter-n"]
|
||||
{:icon icon
|
||||
:icon-theme :gray
|
||||
:text (highlight-content-query text @!input)
|
||||
:header (when-not object? (block/breadcrumb {:search? true} repo id {}))
|
||||
:header (when-not (ldb/object? 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}))
|
||||
|
||||
Reference in New Issue
Block a user