mirror of
https://github.com/apache/superset.git
synced 2026-06-07 00:29:17 +00:00
fix: remove unnecessary divider (#19048)
* fix: remove unnecessary divider * remove console
This commit is contained in:
committed by
GitHub
parent
c75f233109
commit
4d96393faf
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user