Fix(?) possible TypeError

This commit is contained in:
Deluan 2021-05-06 20:46:01 -04:00 committed by Joe Stump
parent 82f3aee0a3
commit 3a93914ec3
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

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