Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trackURIs for saving playlist #2

Open
cyouh95 opened this issue Apr 20, 2018 · 0 comments
Open

trackURIs for saving playlist #2

cyouh95 opened this issue Apr 20, 2018 · 0 comments

Comments

@cyouh95
Copy link

cyouh95 commented Apr 20, 2018

For saving a playlist, you'd actually want an array of just the track URI's (ie. only the id values for each track here). In your App component's savePlaylist method, you could use .map() to help map this.state.playlistTracks to an array of just the URI's, and then pass that in as the second argument to Spotify.savePlaylist.

@cyouh95 cyouh95 mentioned this issue Apr 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant