Skip to content

Commit

Permalink
Fix post update tracks bug
Browse files Browse the repository at this point in the history
  • Loading branch information
staniel359 committed Apr 8, 2022
1 parent 2561aa9 commit 545c996
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,11 @@ export default {
trackData.artists
)
const artistData = {
name: artistName
}
return {
title: trackData.title,
artist: artistData
artist: {
name: artistName
}
}
},
formatImage (imageData) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ export default {
formatTrack (trackData) {
const artistName =
formatArtistName(
trackData.artists
trackData.artists ||
[trackData.artist]
)
const artistData = {
name: artistName
}
return {
title: trackData.title,
artist: artistData
artist: {
name: artistName
}
}
},
formatImage (imageData) {
Expand Down

0 comments on commit 545c996

Please sign in to comment.