From f3770b6ea40b6338c0df495612c6efc019110c6f Mon Sep 17 00:00:00 2001 From: UK <41271523+NeloBlivion@users.noreply.github.com> Date: Mon, 19 Feb 2024 18:19:55 +0000 Subject: [PATCH] better for --- src/components/media/SongSearch.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/media/SongSearch.vue b/src/components/media/SongSearch.vue index 0ef6128d3..dac687d03 100644 --- a/src/components/media/SongSearch.vue +++ b/src/components/media/SongSearch.vue @@ -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)) { @@ -234,7 +234,7 @@ export default { } return acc; }) - }); + }; return regionSongs; } async searchMusicdex(query) {