瀏覽代碼

fix(regression): search not working for

new tags or pages
Gabriel Horner 1 年之前
父節點
當前提交
9645651ddf
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/frontend/worker/search.cljs

+ 1 - 1
src/main/frontend/worker/search.cljs

@@ -420,7 +420,7 @@ DROP TRIGGER IF EXISTS blocks_au;
     (let [fuzzy-blocks-to-add (filter page-or-object? blocks-to-add)
     (let [fuzzy-blocks-to-add (filter page-or-object? blocks-to-add)
           fuzzy-blocks-to-remove (filter page-or-object? blocks-to-remove)]
           fuzzy-blocks-to-remove (filter page-or-object? blocks-to-remove)]
       (when (or (seq fuzzy-blocks-to-add) (seq fuzzy-blocks-to-remove))
       (when (or (seq fuzzy-blocks-to-add) (seq fuzzy-blocks-to-remove))
-        (swap! fuzzy-search-indices update-in repo
+        (swap! fuzzy-search-indices update repo
                (fn [indice]
                (fn [indice]
                  (when indice
                  (when indice
                    (doseq [page-entity fuzzy-blocks-to-remove]
                    (doseq [page-entity fuzzy-blocks-to-remove]