LFFE-15 Merge branch 'bugfix/LFFE-15_sidebar_bugfix' into 'develop'

This commit is contained in:
AmirHossein Mahmoodi
2023-11-05 11:42:12 +00:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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={{

View File

@@ -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={{