Skip to content

Conversation

@c1oneman
Copy link

No description provided.


renderPlaylists() {
return this.props.playlistMenu.map(playlist => {
return this.props.playlistMenu.map((playlist) => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to check if the array will be present or not.
return this.props.playlistMenu && this.props.playlistMenu.map((playlist) => {

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

Successfully merging this pull request may close these issues.

2 participants