From b1fa7ee8ad904afb5829c577e5dc926e62a655af Mon Sep 17 00:00:00 2001 From: charlie Date: Thu, 11 Jul 2024 10:53:49 +0800 Subject: [PATCH] fix: slash command clash for the demo graph --- src/main/frontend/components/editor.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/frontend/components/editor.cljs b/src/main/frontend/components/editor.cljs index 95da13cc5..9636bbac0 100644 --- a/src/main/frontend/components/editor.cljs +++ b/src/main/frontend/components/editor.cljs @@ -54,7 +54,8 @@ command-doc (get item 2) plugin-id (get-in item [1 1 1 :pid]) doc (when (state/show-command-doc?) command-doc) - icon-name (some-> item (get 3) (name)) + options (some-> item (get 3)) + icon-name (some-> (if (map? options) :icon options) (name)) command-name (if icon-name [:span.flex.items-center.gap-1 (shui/tabler-icon icon-name)