fix favorite, ready to merge bra

This commit is contained in:
Petitminion 2025-05-20 20:32:42 +02:00 committed by Arne Bollinger
parent 9e3155d302
commit b9f42a7ef4
1 changed files with 3 additions and 3 deletions

View File

@ -76,8 +76,8 @@ const fetchFavorites = async () => {
results.length = 0 results.length = 0
results.push(...response.data.results) results.push(...response.data.results)
for (const track of results) { for (const trackfavorite of results) {
store.commit('favorites/track', { id: track.id, value: true }) store.commit('favorites/track', { id: trackfavorite.track.id, value: true })
} }
count.value = response.data.count count.value = response.data.count
@ -225,7 +225,7 @@ const paginateOptions = computed(() => sortedUniq([12, 25, 50, paginateBy.value]
:search="true" :search="true"
:show-artist="true" :show-artist="true"
:show-album="true" :show-album="true"
:tracks="results" :tracks="results.map(r => r.track)"
/> />
</Layout> </Layout>
<Alert <Alert