Skip to content

Commit

Permalink
Don't attempt to request extended album data when unavailable [Fixes #92
Browse files Browse the repository at this point in the history
]
  • Loading branch information
watsonbox committed Feb 25, 2021
1 parent 80264d8 commit 09159eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/data/TracksAlbumData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class TracksAlbumData extends TracksData {
}

async data() {
const albumIds = Array.from(new Set(this.tracks.map((track: any) => track.album.id)))
const albumIds = Array.from(new Set(this.tracks.filter((track: any) => track.album.id).map((track: any) => track.album.id)))

let requests = []

Expand Down

0 comments on commit 09159eb

Please sign in to comment.