Merge pull request #4 from lidarr/fix/AddArtistExisting

Fixes Existing Detection In Search Results when adding artist
pull/5/head
Joseph Milazzo 8 years ago committed by GitHub
commit db62c15c17

@ -97,7 +97,7 @@ var view = Marionette.ItemView.extend({
}, },
_configureTemplateHelpers : function() { _configureTemplateHelpers : function() {
var existingArtist = ArtistCollection.where({ SpotifyId : this.model.get('spotifyId') }); var existingArtist = ArtistCollection.where({ spotifyId : this.model.get('spotifyId') });
if (existingArtist.length > 0) { if (existingArtist.length > 0) {
this.templateHelpers.existing = existingArtist[0].toJSON(); this.templateHelpers.existing = existingArtist[0].toJSON();

Loading…
Cancel
Save