mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-11 11:57:12 +02:00
Fix possible TypeError
This commit is contained in:
parent
9e559311ad
commit
fb33aa4496
1 changed files with 2 additions and 2 deletions
|
|
@ -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} />
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue