mirror of
https://github.com/navidrome/navidrome.git
synced 2025-06-13 22:02:15 +03:00
Fix possible TypeError
This commit is contained in:
parent
9e559311ad
commit
fb33aa4496
@ -185,8 +185,8 @@ const LoadedAlbumGrid = ({ ids, data, basePath, width }) => {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const AlbumGridView = ({ albumListType, loading, ...props }) => {
|
const AlbumGridView = ({ albumListType, loaded, loading, ...props }) => {
|
||||||
const hide = loading && albumListType === 'random'
|
const hide = (loading && albumListType === 'random') || !props.data
|
||||||
return hide ? <Loading /> : <LoadedAlbumGrid {...props} />
|
return hide ? <Loading /> : <LoadedAlbumGrid {...props} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user