FIX Bad var affect. artist name

This commit is contained in:
2017-10-17 01:47:57 +02:00
parent e4cf58528a
commit e0f17c24b8

View File

@@ -76,7 +76,7 @@ export class DashboardComponent implements OnInit {
// Search good artist by track count // Search good artist by track count
albums.forEach(album => { albums.forEach(album => {
if (album['Track Count'] === albumBucket.doc_count) { if (album['Track Count'] === albumBucket.doc_count) {
this.albumArtists[album.Name] = album['Album Artist'].toString(); this.albumArtists[album.Name] = album['Album Artist'] ? album['Album Artist'].toString() : album.Artist.toString();
} }
}); });
} else { } else {