Skip to content

Commit

Permalink
fix: remove unnecessary divider (#19048)
Browse files Browse the repository at this point in the history
* fix: remove unnecessary divider

* remove console
  • Loading branch information
pkdotson authored Mar 8, 2022
1 parent c75f233 commit 4d96393
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/views/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 4d96393

Please sign in to comment.