Fix(?) possible TypeError

This commit is contained in:
Deluan 2021-05-06 20:46:01 -04:00
parent c92a24b3e2
commit 1f8949929d
1 changed files with 3 additions and 0 deletions

View File

@ -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}>