mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 03:16:37 +00:00
fix: user custom commands not working
This commit is contained in:
@@ -1361,10 +1361,6 @@
|
||||
:or {restore? true}
|
||||
:as option}]
|
||||
(cond
|
||||
(fn? command-output)
|
||||
(let [s (command-output)]
|
||||
(commands/insert! id s option))
|
||||
|
||||
;; replace string
|
||||
(string? command-output)
|
||||
(commands/insert! id command-output option)
|
||||
@@ -1373,6 +1369,10 @@
|
||||
(vector? command-output)
|
||||
(commands/handle-steps command-output format)
|
||||
|
||||
(fn? command-output)
|
||||
(let [s (command-output)]
|
||||
(commands/insert! id s option))
|
||||
|
||||
:else
|
||||
nil)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user