瀏覽代碼

chore: anonymous fn style

Tienson Qin 4 年之前
父節點
當前提交
da10a02e1f
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/main/frontend/extensions/srs.cljs

+ 2 - 1
src/main/frontend/extensions/srs.cljs

@@ -490,7 +490,8 @@
                                       :shortcut   "f"
                                       :id         "card-forgotten"
                                       :background "red"
-                                      :on-click   #((score-and-next-card 1 card card-index cards phase review-records cb)
+                                      :on-click   (fn []
+                                                    (score-and-next-card 1 card card-index cards phase review-records cb)
                                                     (let [tomorrow (tc/to-string (t/plus (t/today) (t/days 1)))]
                                                       (editor-handler/set-block-property! root-block-id card-next-schedule-property tomorrow)))})