Browse Source

fix: wrong fn invoke

Tienson Qin 2 years ago
parent
commit
fb3e345d76
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/main/frontend/components/settings.cljs

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

@@ -440,7 +440,8 @@
   (row-with-button-action
     {:left-label   (t :settings-page/customize-shortcuts)
      :button-label (t :settings-page/shortcut-settings)
-     :on-click      #((state/close-settings!)
+     :on-click      (fn []
+                      (state/close-settings!)
                       (route-handler/redirect! {:to :shortcut-setting}))
      :-for         "customize_shortcuts"}))