From ae5928357171df0f9b1fa4a9a1d79732cc7a2dc8 Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 14 Jan 2025 18:40:37 -0800 Subject: [PATCH] fix missing docs subaction item --- gui/src/components/mainInput/MentionList.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/components/mainInput/MentionList.tsx b/gui/src/components/mainInput/MentionList.tsx index aae963779..815a12f00 100644 --- a/gui/src/components/mainInput/MentionList.tsx +++ b/gui/src/components/mainInput/MentionList.tsx @@ -81,6 +81,7 @@ const ICONS_FOR_DROPDOWN: { [key: string]: any } = { google: GoogleIcon, "gitlab-mr": GitlabIcon, http: GlobeAltIcon, + trash: TrashIcon, }; export function getIconFromDropdownItem( @@ -451,7 +452,10 @@ const MentionList = forwardRef((props: MentionListProps, ref) => { /> )} {item.subActions?.map((subAction) => { - const Icon = ICONS_FOR_DROPDOWN[subAction.icon]; + const Icon = getIconFromDropdownItem( + subAction.icon, + "action", + ); return ( {