Преглед изворни кода

fix: do not print nil in QC (#9617)

Bad3r пре 2 година
родитељ
комит
b435cb2e13
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      src/main/frontend/quick_capture.cljs

+ 2 - 0
src/main/frontend/quick_capture.cljs

@@ -18,6 +18,8 @@
 
 
 (defn quick-capture [args]
 (defn quick-capture [args]
   (let [{:keys [url title content page append]} (bean/->clj args)
   (let [{:keys [url title content page append]} (bean/->clj args)
+        title (or title "")
+        url (or url "")
         insert-today? (get-in (state/get-config)
         insert-today? (get-in (state/get-config)
                               [:quick-capture-options :insert-today?]
                               [:quick-capture-options :insert-today?]
                               false)
                               false)