diff --git a/apps/sensenet/src/components/settings/content-card.tsx b/apps/sensenet/src/components/settings/content-card.tsx index 87fd3cc57..67fbc6b1e 100644 --- a/apps/sensenet/src/components/settings/content-card.tsx +++ b/apps/sensenet/src/components/settings/content-card.tsx @@ -57,6 +57,8 @@ export const ContentCard = ({ settings, onContextMenu }: ContentCardProps) => { const uiSettings = useContext(ResponsivePersonalSettings) const history = useHistory() const classes = useStyles() + const settingsName = settings.DisplayName || settings.Name + const settingsTitle = settingsName.replace(/.settings/gi, '') return ( { onContextMenu(ev) }} className={classes.card} - data-test={`content-card-${settings.DisplayName?.replace(/\s+/g, '-').toLowerCase()}`}> + data-test={`content-card-${settingsName.replace(/\s+/g, '-').toLowerCase()}`}> - + - {settings.DisplayName || settings.Name} + {settingsTitle}