Merge pull request #2338 from automatisch/AUT-1419
feat: display secondary ListItemText content only if is a string
This commit is contained in:
@@ -37,7 +37,7 @@ const Item = (props) => {
|
|||||||
title: 'Property name',
|
title: 'Property name',
|
||||||
sx: { fontWeight: 700 },
|
sx: { fontWeight: 700 },
|
||||||
}}
|
}}
|
||||||
secondary={suboption.value}
|
secondary={typeof suboption.value === 'string' ? suboption.value : ''}
|
||||||
secondaryTypographyProps={{
|
secondaryTypographyProps={{
|
||||||
variant: 'subtitle2',
|
variant: 'subtitle2',
|
||||||
title: 'Sample value',
|
title: 'Sample value',
|
||||||
|
|||||||
Reference in New Issue
Block a user