浏览代码

fix: typo

Weihua Lu 4 年之前
父节点
当前提交
a7a1258fa3
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/components/widgets.cljs

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

@@ -1,5 +1,6 @@
 (ns frontend.components.widgets
   (:require [clojure.string :as string]
+            [promesa.core :as p]
             [frontend.mobile.util :as mobile]
             [frontend.context.i18n :as i18n]
             [frontend.handler.notification :as notification]
@@ -89,7 +90,7 @@
        (ui/button "Open mobile graph test"
                   :on-click
                   (fn []
-                    (let [folder (.pickFolder mobile/folder-picker)]
+                    (p/let [folder (.pickFolder mobile/folder-picker)]
                       (js/console.log folder)
                       ;;TODO
                       nil)))