浏览代码

fix: update commands/action check

Tienson Qin 4 年之前
父节点
当前提交
74c2606300
共有 1 个文件被更改,包括 1 次插入3 次删除
  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/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/tag vector?)