Fix(?) possible TypeError
This commit is contained in:
parent
c92a24b3e2
commit
1f8949929d
|
@ -117,6 +117,9 @@ const AlbumGridTile = ({ showArtist, record, basePath }) => {
|
|||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'), {
|
||||
noSsr: true,
|
||||
})
|
||||
if (!record) {
|
||||
return null
|
||||
}
|
||||
|
||||
return (
|
||||
<div className={classes.albumContainer}>
|
||||
|
|
Loading…
Reference in New Issue