Przeglądaj źródła

fix: wrong fn invoke

Tienson Qin 2 lat temu
rodzic
commit
fb3e345d76
1 zmienionych plików z 2 dodań i 1 usunięć
  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"}))