mirror of
https://github.com/logseq/logseq.git
synced 2026-05-01 09:26:28 +00:00
refactor select components
This commit is contained in:
@@ -77,7 +77,8 @@
|
||||
*selected-choices (::selected-choices state)
|
||||
selected-choices (rum/react *selected-choices)
|
||||
full-choices (->> (concat (map (fn [v] {:value v}) selected-choices) items)
|
||||
(util/distinct-by-last-wins :value))
|
||||
(util/distinct-by-last-wins :value)
|
||||
(remove nil?))
|
||||
search-result' (->>
|
||||
(cond-> (search/fuzzy-search full-choices @input :limit limit :extract-fn extract-fn)
|
||||
(fn? transform-fn)
|
||||
|
||||
Reference in New Issue
Block a user