Skip to content
Snippets Groups Projects
Commit 1afcfc3a authored by Tom Robinson's avatar Tom Robinson
Browse files

EntityMenu tweaks

parent e7c9db76
Branches
Tags
No related merge requests found
......@@ -92,7 +92,9 @@ class EntityMenu extends Component {
{menuItemContent || (
<ol className="py1" style={{ minWidth: 210 }}>
{items.map(item => {
if (item.content) {
if (!item) {
return null;
} else if (item.content) {
return (
<li key={item.title}>
<EntityMenuItem
......
......@@ -80,7 +80,7 @@ const EntityMenuItem = ({
const content = (
<Item>
<Icon name={icon} mr={1} />
{icon && <Icon name={icon} mr={1} />}
<span className="text-bold">{title}</span>
</Item>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment