Fixed "download all charts for each song" button

This commit is contained in:
Geomitron
2021-01-30 17:23:22 -05:00
parent 7af4af2771
commit 3078309d86
2 changed files with 5 additions and 5 deletions

View File

@@ -84,8 +84,8 @@ export class StatusBarComponent {
}
downloadAllCharts() {
const chartGroups = groupBy(this.batchResults, 'chartID')
for (const chart of chartGroups) {
const songChartGroups = groupBy(this.batchResults, 'songID', 'chartID')
for (const chart of songChartGroups) {
this.searchService.sortChart(chart)
const downloadVersion = chart[0]
const downloadSong = this.selectedResults.find(song => song.id == downloadVersion.songID)