mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: lint
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.search :as search]
|
||||
[frontend.state :as state]
|
||||
[frontend.storage :as storage]
|
||||
[frontend.util :as util]
|
||||
[logseq.db :as ldb]
|
||||
[missionary.core :as m]
|
||||
@@ -166,18 +165,3 @@
|
||||
result)))
|
||||
(conj result [:span content])))]
|
||||
[:span {:class "m-0"} elements]))))))
|
||||
|
||||
(defn get-recents
|
||||
[]
|
||||
(storage/get :recent-search-items))
|
||||
|
||||
(defn add-recent!
|
||||
[item]
|
||||
(when-not (string/blank? item)
|
||||
(let [recents (get-recents)]
|
||||
(storage/set :recent-search-items
|
||||
(distinct (take 20 (cons item recents)))))))
|
||||
|
||||
(defn clear-recents!
|
||||
[]
|
||||
(storage/remove :recent-search-items))
|
||||
|
||||
Reference in New Issue
Block a user