fix: remove unnecessary divider (#19048)

* fix: remove unnecessary divider

* remove console
This commit is contained in:
Phillip Kelley-Dotson
2022-03-08 09:49:48 -08:00
committed by GitHub
parent c75f233109
commit 4d96393faf

View File

@@ -242,7 +242,7 @@ export function Menu({
icon={showMenu === 'inline' ? <></> : <Icons.TriangleDown />}
>
{childs?.map((child: MenuObjectChildProps | string, index1: number) => {
if (typeof child === 'string' && child === '-') {
if (typeof child === 'string' && child === '-' && label !== 'Data') {
return <DropdownMenu.Divider key={`$${index1}`} />;
}
if (typeof child !== 'string') {