Skip to content

Commit

Permalink
better for
Browse files Browse the repository at this point in the history
  • Loading branch information
NeloBlivion authored Feb 19, 2024
1 parent 20c9c73 commit f3770b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/media/SongSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export default {
let regionSongs = [];
let parsedIDs = [];
let currentSongs = []
regions.forEach(r => {
for (const r of regions) {
currentSongs = await this.searchAutocomplete(query, lang=lang, country=r);
regionSongs.concat(currentSongs.reduce(acc, cur) => {
if (!parsedIDs.includes(cur.trackId)) {
Expand All @@ -234,7 +234,7 @@ export default {
}
return acc;
})
});
};
return regionSongs;
}
async searchMusicdex(query) {
Expand Down

0 comments on commit f3770b6

Please sign in to comment.