Browse Source

fix: open search in right sidebar doesn't work when input is empty

Fixes LOG-2923
Tienson Qin 1 year ago
parent
commit
6277f76557
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/frontend/components/cmdk.cljs

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

@@ -562,8 +562,7 @@
     (when-not esc? (util/stop-propagation e))
 
     (cond
-      (and meta? enter?
-           (not (string/blank? input)))
+      (and meta? enter?)
       (let [repo (state/get-current-repo)]
         (state/close-modal!)
         (state/sidebar-add-block! repo input :search))