Fixing undefined error

This commit is contained in:
James Barnsley
2017-07-15 23:49:17 +12:00
parent 308cce1da3
commit 4fa2d463fa

View File

@ -62,7 +62,7 @@ class PlaybackControls extends React.Component{
}
render(){
var images = []
var images = false
if (this.props.current_track && this.props.current_track.album && this.props.current_track.album.images){
images = this.props.current_track.album.images
}