patch(notifications): skip rendering empty descriptions
Signed-off-by: Marek Libra <marek.libra@gmail.com>
This commit is contained in:
@@ -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} • </>
|
||||
|
||||
Reference in New Issue
Block a user