feat: display secondary ListItemText content only if is a string

This commit is contained in:
kasia.oczkowska
2025-02-06 11:52:51 +00:00
parent 586348039d
commit 42a4019998

View File

@@ -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',