Skip to content

Commit

Permalink
fix addTracksToPlaylist
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvldmrbrvkv committed Jul 3, 2024
1 parent e145313 commit a1204ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/App/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ function App() {
const addTracksEndpoint = `/v1/playlists/${playlist_id}/tracks`;
const urlToFetch = `${spotifyBaseUrl}${addTracksEndpoint}`;
const data = JSON.stringify({
'uris': playlist.map(track => track.uri),
'position': 0
uris: playlist.map(track => track.uri),
position: 0
})
try {
const response = await fetch(urlToFetch, {
Expand Down

0 comments on commit a1204ed

Please sign in to comment.