mirror of
https://github.com/navidrome/navidrome.git
synced 2026-08-31 07:30:32 +00:00
Fix possible TypeError
This commit is contained in:
parent
4264a5c6ef
commit
cbc480a615
@ -186,7 +186,8 @@ const LoadedAlbumGrid = ({ ids, data, basePath, width }) => {
|
||||
}
|
||||
|
||||
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} />
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user