Skip to content

Selected playlist name should default to the first one #11

@dmullen17

Description

@dmullen17

The variable selectedPlaylistName in the Playlists object's internal state defaults to an empty string. This is problematic because it only updates when a user selects a playlist, but if they click the first then it searches for a playlist with an empty name. I added a quick hard-coded solution for the time being. Need to explore a better alternative though.

const selectedPlaylistName = (this.state.selectedPlaylistName === '') ? 'Summer 2019' : this.state.selectedPlaylistName;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions