Skip to content

Commit

Permalink
feat: suppress stringified object
Browse files Browse the repository at this point in the history
  • Loading branch information
Wawrzyn321 committed Nov 8, 2022
1 parent a29d326 commit 5384648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SideNavigation/_SideNavList.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SideNavList extends React.Component {
{ title && <li
{...titleProps}
className={classnames('fd-nested-list__group-header')}
title={title}>
title={typeof title === 'object' ? '' : title}>
<span style={textContentStyle}>{title}</span>
</li>}
{React.Children.toArray(children).map(child => {
Expand Down
2 changes: 1 addition & 1 deletion src/SideNavigation/_SideNavListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class SideNavListItem extends React.Component {
<li {...props}
className={classnames(`${cssNamespace}-nested-list__item`)}
key={id}
title={title || name}>
title={title || (typeof name === 'object' ? '' : name)}>
{url && renderLink()}
{React.Children.toArray(children).map(child => {
if (child.type !== SideNavList) {
Expand Down

0 comments on commit 5384648

Please sign in to comment.