patch(notifications): skip rendering empty descriptions

Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
Marek Libra
2024-04-23 14:07:31 +02:00
parent 4bfb02ed70
commit a42a19b087
2 changed files with 10 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-notifications': patch
---
Empty descriptions are not rendered to improve the look&feel.
@@ -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;</>