mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 17:36:33 +00:00
fix: left sidebar duplicate favorites
This commit is contained in:
committed by
Tienson Qin
parent
9507f0efe6
commit
8ebf2dbadb
@@ -139,9 +139,11 @@
|
||||
[t]
|
||||
(let [favorites (->> (:favorites (state/sub-config))
|
||||
(remove string/blank?)
|
||||
(filter string?))
|
||||
(filter string?)
|
||||
(mapv util/safe-page-name-sanity-lc)
|
||||
(distinct))
|
||||
favorite-entities (->> favorites
|
||||
(mapv #(db/entity [:block/name (util/safe-page-name-sanity-lc %)]))
|
||||
(mapv #(db/entity [:block/name %]))
|
||||
(remove nil?))]
|
||||
(nav-content-item
|
||||
[:a.flex.items-center.text-sm.font-medium.rounded-md.wrap-th
|
||||
|
||||
Reference in New Issue
Block a user