From 45d4a68ac69a575be619bb35e81e33118f09b6cf Mon Sep 17 00:00:00 2001 From: charlie Date: Sun, 24 Apr 2022 10:54:04 +0800 Subject: [PATCH] fix(api): invalid arity error of show msg --- src/main/logseq/api.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/logseq/api.cljs b/src/main/logseq/api.cljs index cfb712e6d8..7737a93e96 100644 --- a/src/main/logseq/api.cljs +++ b/src/main/logseq/api.cljs @@ -729,6 +729,7 @@ ;; ui (defn ^:export show_msg ([content] (show_msg content :success nil)) + ([content status] (show_msg content status nil)) ([content status ^js opts] (let [{:keys [key timeout]} (bean/->clj opts) hiccup? (and (string? content) (string/starts-with? (string/triml content) "[:"))