Render playlist description based on condition

Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
AmbrishRamachandiran
2024-02-06 16:11:17 +05:30
parent 39812987d1
commit 5a03537806
2 changed files with 8 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-playlist': patch
---
Render playlist description based on condition
@@ -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}>