Merge pull request #2338 from automatisch/AUT-1419

feat: display secondary ListItemText content only if is a string
This commit is contained in:
Ali BARIN
2025-03-06 15:27:26 +01:00
committed by GitHub

View File

@@ -37,7 +37,7 @@ const Item = (props) => {
title: 'Property name',
sx: { fontWeight: 700 },
}}
secondary={suboption.value}
secondary={typeof suboption.value === 'string' ? suboption.value : ''}
secondaryTypographyProps={{
variant: 'subtitle2',
title: 'Sample value',