From e0f17c24b8e34c641dd4a9bcb936157ea8119ef7 Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Tue, 17 Oct 2017 01:47:57 +0200 Subject: [PATCH] FIX Bad var affect. artist name --- dashboard/src/app/dashboard.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/src/app/dashboard.component.ts b/dashboard/src/app/dashboard.component.ts index fb958a3..dc2917e 100644 --- a/dashboard/src/app/dashboard.component.ts +++ b/dashboard/src/app/dashboard.component.ts @@ -76,7 +76,7 @@ export class DashboardComponent implements OnInit { // Search good artist by track count albums.forEach(album => { 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 {