Render playlist description based on condition
Signed-off-by: AmbrishRamachandiran <ambrish.r@infosys.com>
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user