LFFE-15 Merge branch 'bugfix/LFFE-15_sidebar_bugfix' into 'develop'
This commit is contained in:
@@ -15,7 +15,7 @@ const SidebarListItem = ({item, dispatch, handleDrawerToggle}) => {
|
||||
return !hasSubItems ? (
|
||||
<IconButton>
|
||||
<Badge
|
||||
badgeContent={notification_count && notification_count.length>0 ? notification_count[item.name] : 0}
|
||||
badgeContent={notification_count ? notification_count[item.name] : 0}
|
||||
color="error"
|
||||
variant="standard"
|
||||
anchorOrigin={{
|
||||
|
||||
@@ -19,7 +19,7 @@ const SidebarListSubItem = ({item, handleDrawerToggle }) => {
|
||||
const renderBadge = (subitem) => (
|
||||
<IconButton>
|
||||
<Badge
|
||||
badgeContent={notification_count && notification_count.length>0 ? notification_count[subitem.name] : 0}
|
||||
badgeContent={notification_count ? notification_count[subitem.name] : 0}
|
||||
color="error"
|
||||
variant="standard"
|
||||
anchorOrigin={{
|
||||
|
||||
Reference in New Issue
Block a user