From e0a8bc997e8eb61e0efa3eb1cdb5c4d96ccb129c Mon Sep 17 00:00:00 2001 From: RemixDev Date: Sat, 5 Mar 2022 13:36:08 +0100 Subject: [PATCH] Fixed favorites issues --- src/use/favorites.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/use/favorites.js b/src/use/favorites.js index 5065566..dbc6e6a 100644 --- a/src/use/favorites.js +++ b/src/use/favorites.js @@ -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 }) => {