Browse Source

fix: shift-click on recently searched page

Giuseppe D'Andrea 3 years ago
parent
commit
43124f2c12
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/search.cljs

+ 2 - 1
src/main/frontend/components/search.cljs

@@ -324,7 +324,8 @@
                                  (state/sidebar-add-block!
                                   (state/get-current-repo)
                                   (:db/id page)
-                                  :page))))
+                                  :page))
+                                (state/close-modal!)))
 
                             nil))
        :item-render (fn [{:keys [type data]}]