Skip to content

Commit aa887a2

Browse files
committed
Fix AlbumGrid tests
1 parent 92f4d6b commit aa887a2

File tree

1 file changed

+1
-1
lines changed
  • packages/ui/lib/components/AlbumGrid

1 file changed

+1
-1
lines changed

packages/ui/lib/components/AlbumGrid/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const AlbumGrid = ({
2121
withArtistNames,
2222
withAlbumPreview
2323
}) => {
24-
const [selectedAlbum, selectAlbum] = useState(albums.length > 0 ? albums[0] : null);
24+
const [selectedAlbum, selectAlbum] = useState(albums?.length > 0 ? albums[0] : null);
2525
const onAlbumClick = album => _.isNil(onAlbumClick) ? selectAlbum(album) : onAlbumClick(album);
2626

2727
const onAddToQueue = () => {

0 commit comments

Comments
 (0)