Fix possible TypeError

This commit is contained in:
Deluan 2021-05-05 21:14:36 -04:00 committed by Joe Stump
parent f2c25ea3d1
commit 02e46a151c
No known key found for this signature in database
GPG Key ID: 29151C3EC48A0EB9

View File

@ -185,8 +185,8 @@ const LoadedAlbumGrid = ({ ids, data, basePath, width }) => {
)
}
const AlbumGridView = ({ albumListType, loading, ...props }) => {
const hide = loading && albumListType === 'random'
const AlbumGridView = ({ albumListType, loaded, loading, ...props }) => {
const hide = (loading && albumListType === 'random') || !props.data
return hide ? <Loading /> : <LoadedAlbumGrid {...props} />
}