mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-07 06:27:36 +03:00
Fix possible TypeError
This commit is contained in:
parent
30bb3f7b43
commit
1d6aa70033
1 changed files with 2 additions and 1 deletions
|
@ -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} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue