fix: user custom commands not working

This commit is contained in:
Tienson Qin
2020-11-19 15:22:54 +08:00
parent e22ba14e64
commit 0a92889258
4 changed files with 11 additions and 8 deletions

View File

@@ -132,7 +132,7 @@
;; ["Upload a file" nil]
]
;; Allow user to modify or extend, should specify how to extend.
(get-in @state/state [:config (state/get-current-repo) :commands]))
(state/get-commands))
(remove nil?)
(util/distinct-by-last-wins first)))
@@ -194,7 +194,7 @@
["Comment" (->block "comment")]]
;; Allow user to modify or extend, should specify how to extend.
(get-in @state/state [:config (state/get-current-repo) :block-commands]))
(state/get-commands))
(remove nil?)
(util/distinct-by-last-wins first)))