Browse Source

fix: update commands/action check

Tienson Qin 3 years ago
parent
commit
74c2606300
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/main/frontend/handler/command_palette.cljs

+ 1 - 3
src/main/frontend/handler/command_palette.cljs

@@ -8,9 +8,7 @@
 
 
 (s/def :command/id keyword?)
 (s/def :command/id keyword?)
 (s/def :command/desc string?)
 (s/def :command/desc string?)
-(s/def :command/action (and fn?
-                            ;; action fn expects zero number of arities
-                            (fn [action] (zero? (.-length action)))))
+(s/def :command/action fn?)
 (s/def :command/shortcut string?)
 (s/def :command/shortcut string?)
 (s/def :command/tag vector?)
 (s/def :command/tag vector?)