fix: slash command clash for the demo graph

pull/11433/head
charlie 2024-07-11 10:53:49 +08:00
parent 4764dfaa80
commit b1fa7ee8ad
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@
command-doc (get item 2) command-doc (get item 2)
plugin-id (get-in item [1 1 1 :pid]) plugin-id (get-in item [1 1 1 :pid])
doc (when (state/show-command-doc?) command-doc) 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 command-name (if icon-name
[:span.flex.items-center.gap-1 [:span.flex.items-center.gap-1
(shui/tabler-icon icon-name) (shui/tabler-icon icon-name)