Skip to content

Commit

Permalink
Fix AlbumGrid tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nukeop committed Oct 25, 2023
1 parent 92f4d6b commit aa887a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/lib/components/AlbumGrid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const AlbumGrid = ({
withArtistNames,
withAlbumPreview
}) => {
const [selectedAlbum, selectAlbum] = useState(albums.length > 0 ? albums[0] : null);
const [selectedAlbum, selectAlbum] = useState(albums?.length > 0 ? albums[0] : null);
const onAlbumClick = album => _.isNil(onAlbumClick) ? selectAlbum(album) : onAlbumClick(album);

const onAddToQueue = () => {
Expand Down

0 comments on commit aa887a2

Please sign in to comment.