Skip to content

Commit

Permalink
#16 Support accounts with empty playlists
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvollebregt committed Mar 25, 2024
1 parent 367cb14 commit 1e73017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"editor.rulers": [100],
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.tslint": true
"source.fixAll.tslint": "explicit"
}
}
3 changes: 2 additions & 1 deletion src/components/PlaylistSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ const PlaylistSelection: React.FunctionComponent<IProps> = (props: IProps) => {
}}
>
<td style={{ padding: 2 }}>
{playlist.images.length > 0 && (
{/* Spotify has recently changed their responses - playlist.images is now nullable */}
{playlist.images !== null && playlist.images.length > 0 && (
<img
src={playlist.images[0].url}
className="w-100"
Expand Down

0 comments on commit 1e73017

Please sign in to comment.