Fix possible TypeError

This commit is contained in:
Deluan
2021-05-06 09:49:25 -04:00
parent 30bb3f7b43
commit 1d6aa70033
+2 -1
View File
@@ -186,7 +186,8 @@ const LoadedAlbumGrid = ({ ids, data, basePath, width }) => {
} }
const AlbumGridView = ({ albumListType, loaded, loading, ...props }) => { const AlbumGridView = ({ albumListType, loaded, loading, ...props }) => {
const hide = (loading && albumListType === 'random') || !props.data const hide =
(loading && albumListType === 'random') || !props.data || !props.ids
return hide ? <Loading /> : <LoadedAlbumGrid {...props} /> return hide ? <Loading /> : <LoadedAlbumGrid {...props} />
} }