I get Bugs with The Spotify Project

My mother language is Not English sorry if I don’t explain well

i get this error : Uncaught TypeError: Cannot read properties of undefined (reading ‘map’)

The state looks like this

This happens when modifying this.state, before adding playlistTracks and playlistName it worked fine (although a little earlier it showed the same error, and then it fixed itself)
the way i am passing the props and how its showing me the page:





If someone has the same bug I have the response, thanks Stack Overflow xD reactjs - × TypeError: Cannot read properties of undefined (reading 'map') - Stack Overflow
the solution is just ask if this.props.tracks exist
image

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.