Merge pull request #22758 from AmbrishRamachandiran/playlist_render

Render playlist description based on condition
This commit is contained in:
Phil Kuang
2024-02-06 15:05:35 -05:00
committed by GitHub
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-playlist': patch
---
Conditionally render playlist description only when it's non-empty
@@ -106,7 +106,9 @@ export const PlaylistCard = ({ playlist }: PlaylistCardProps) => {
<Typography variant="body2" className={classes.label}>
Description
</Typography>
<MarkdownContent content={playlist.description ?? ''} />
{playlist.description && (
<MarkdownContent content={playlist.description} />
)}
</Box>
<Box className={classes.box}>
<Typography variant="body2" className={classes.label}>