From 017a7ccd86ae64c5c8b9ad4545084fc2b0fa9a53 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Thu, 23 Mar 2017 11:51:04 +1300 Subject: [PATCH] Source icon reinstated for search results; Playlists without descriptions don't load - fixed --- src/js/components/Track.js | 3 ++- src/js/components/TrackList.js | 2 +- src/js/services/spotify/actions.js | 9 ++++++--- src/scss/components/_lists.scss | 7 +++++++ 4 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/js/components/Track.js b/src/js/components/Track.js index a1e881ff..3956f04e 100755 --- a/src/js/components/Track.js +++ b/src/js/components/Track.js @@ -40,7 +40,7 @@ export default class Track extends React.Component{ if( typeof(track.selected) !== 'undefined' && track.selected ) className += ' selected'; if( typeof(track.type) !== 'undefined' ) className += ' '+track.type; if( track.playing ) className += ' playing'; - + var album = '-' if( track.album ){ if( track.album.uri ){ @@ -136,6 +136,7 @@ export default class Track extends React.Component{ { this.props.track.selected ? : null } { this.props.track.playing ? : null } { track_columns } + { this.props.show_source_icon ? : null } ); } diff --git a/src/js/components/TrackList.js b/src/js/components/TrackList.js index 6f7828a6..50fc1079 100755 --- a/src/js/components/TrackList.js +++ b/src/js/components/TrackList.js @@ -322,7 +322,7 @@ class TrackList extends React.Component{ this.state.tracks.map( (track, index) => { return { // convert links in description - var description = response.description - description = description.split('