Skip to content

Commit

Permalink
change to tenarary
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Feb 24, 2022
1 parent e2b0570 commit 192a7f4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions superset-frontend/src/views/components/MenuRight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,11 @@ const RightMenu = ({
<>
{idx === 2 && <Menu.Divider />}
<Menu.Item key={item.name}>
{item.url && <a href={item.url}> {item.label} </a>}
{item.url === undefined && item.label}
{item.url ? (
<a href={item.url}> {item.label} </a>
) : (
item.label
)}
</Menu.Item>
</>
) : null,
Expand Down

0 comments on commit 192a7f4

Please sign in to comment.