mirror of https://github.com/apache/superset.git
fix: menu shows a 0 when there are not settings (#11009)
This commit is contained in:
parent
ba009b7c09
commit
345fe07d64
|
@ -187,7 +187,7 @@ export function Menu({
|
|||
</Nav>
|
||||
<Nav className="navbar-right">
|
||||
{!navbarRight.user_is_anonymous && <NewMenu />}
|
||||
{settings && settings.length && (
|
||||
{settings && settings.length > 0 && (
|
||||
<NavDropdown id="settings-dropdown" title="Settings">
|
||||
{flatSettings.map((section, index) => {
|
||||
if (section === '-') {
|
||||
|
|
Loading…
Reference in New Issue