-
-
Notifications
You must be signed in to change notification settings - Fork 212
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
clearPriorAudioLists #115
Comments
Can you show your code ? your console.log(your audio lists) |
When the app loads the
In
and `
|
https://github.com/lijinke666/react-music-player/blob/master/src/index.js#L1923 beasuse player only init when playlist not empty in
please upgrade latest version it's a temporary solution - this.state = { playlist: '' }
+ this.state = { playlist: [{}] } thank your feedback. |
fixed. |
Version
4.13.1
Description
When setting the boolean to true and updating the audioLists via setState, I get this error:
TypeError: Cannot read property 'id' of undefined
ReactJkMusicPlayer.getPlayId
C:/[PATH]/node_modules/react-jinke-music-player/es/index.js:1052
Expected Behavior
The audioList should be cleared out and the new state should be loaded.
The text was updated successfully, but these errors were encountered: