Explorar el Código

fix: remove built-in properties from search result

close #3144
Tienson Qin hace 4 años
padre
commit
270d9d5877
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/main/frontend/search/db.cljs

+ 3 - 1
src/main/frontend/search/db.cljs

@@ -6,6 +6,7 @@
             [frontend.state :as state]
             [frontend.text :as text]
             [frontend.util.drawer :as drawer]
+            [frontend.util.property :as property]
             ["fuse.js" :as fuse]))
 
 (defonce indices (atom nil))
@@ -17,7 +18,8 @@
 (defn block->index
   [{:block/keys [uuid content format page] :as block}]
   (when-let [result (->> (text/remove-level-spaces content format)
-                         (drawer/remove-logbook))]
+                         (drawer/remove-logbook)
+                         (property/remove-built-in-properties format))]
     {:id (:db/id block)
      :uuid (str uuid)
      :page page