Skip to content

Commit

Permalink
fix: menu shows a 0 when there are not settings (#11009)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytai authored Sep 23, 2020
1 parent ba009b7 commit 345fe07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset-frontend/src/components/Menu/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '-') {
Expand Down

0 comments on commit 345fe07

Please sign in to comment.