mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixes Existing Detection on In Search Results
Fixes Existing Detection on In Search Results when adding a new artist
This commit is contained in:
parent
49b616b69d
commit
280229d528
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue