Merge pull request #24477 from mareklibra/skipEmptyDescription

patch(notifications): skip rendering empty descriptions
This commit is contained in:
Marek Libra
2024-04-23 14:59:29 +02:00
committed by GitHub
2 changed files with 10 additions and 3 deletions
@@ -181,9 +181,11 @@ export const NotificationsTable = ({
notification.payload.title
)}
</Typography>
<Typography variant="body2" className={classes.description}>
{notification.payload.description}
</Typography>
{notification.payload.description ? (
<Typography variant="body2" className={classes.description}>
{notification.payload.description}
</Typography>
) : null}
<Typography variant="caption">
{notification.origin && (
<>{notification.origin}&nbsp;&bull;&nbsp;</>