diff --git a/src/components/DropdownMenu/DropdownMenuItem.tsx b/src/components/DropdownMenu/DropdownMenuItem.tsx index 8141c7ae39..41f84eb79e 100644 --- a/src/components/DropdownMenu/DropdownMenuItem.tsx +++ b/src/components/DropdownMenu/DropdownMenuItem.tsx @@ -92,13 +92,11 @@ export const DropdownMenuItem = ({ }; }, [props.extraProps, closeSubmenu, hasSubmenu, openSubmenu]); - let iconEnd = props.iconEnd ? props.iconEnd : null; - - if (hasSubmenu) { - iconEnd = ( - - ); - } + const iconEnd = hasSubmenu ? ( + + ) : ( + props.iconEnd + ); return (