Fixed favorites issues

This commit is contained in:
RemixDev 2022-03-05 13:36:08 +01:00
parent 59b2cb2e69
commit e0a8bc997e

View File

@ -19,11 +19,11 @@ const setAllFavorites = data => {
isRefreshingFavorites.value = false
favoriteArtists.value = artists
favoriteAlbums.value = albums
favoritePlaylists.value = playlists
favoriteTracks.value = tracks
lovedTracksPlaylist.value = lovedTracks
favoriteArtists.value = artists || []
favoriteAlbums.value = albums || []
favoritePlaylists.value = playlists || []
favoriteTracks.value = tracks || []
lovedTracksPlaylist.value = lovedTracks || []
}
const setSpotifyPlaylists = response => {
@ -34,7 +34,7 @@ const setSpotifyPlaylists = response => {
return
}
favoriteSpotifyPlaylists.value = response
favoriteSpotifyPlaylists.value = response || []
}
const refreshFavorites = async ({ isInitial = false }) => {