Fixed: show disambiguation in interactive import modal (#576)

This commit is contained in:
ta264
2018-12-27 02:39:23 +00:00
committed by Qstick
parent ef9072fc3b
commit c749405a45
2 changed files with 9 additions and 2 deletions

View File

@@ -185,7 +185,10 @@ class InteractiveImportRow extends Component {
} = this.state;
const artistName = artist ? artist.artistName : '';
const albumTitle = album ? album.title : '';
let albumTitle = '';
if (album) {
albumTitle = album.disambiguation ? `${album.title} (${album.disambiguation})` : album.title;
}
const trackNumbers = tracks.map((track) => `${track.mediumNumber}x${track.trackNumber}`)
.join(', ');