We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92f4d6b commit aa887a2Copy full SHA for aa887a2
packages/ui/lib/components/AlbumGrid/index.tsx
@@ -21,7 +21,7 @@ const AlbumGrid = ({
21
withArtistNames,
22
withAlbumPreview
23
}) => {
24
- const [selectedAlbum, selectAlbum] = useState(albums.length > 0 ? albums[0] : null);
+ const [selectedAlbum, selectAlbum] = useState(albums?.length > 0 ? albums[0] : null);
25
const onAlbumClick = album => _.isNil(onAlbumClick) ? selectAlbum(album) : onAlbumClick(album);
26
27
const onAddToQueue = () => {
0 commit comments