fix: favorites not working when client id or client secret are empty in settings
This commit is contained in:
parent
b06597d9f2
commit
33d9920eae
@ -34,6 +34,11 @@ const refreshFavorites = ({ isInitial = false }) => {
|
||||
spotifyUser: store.getters.getSpotifyUser.id
|
||||
})
|
||||
.then(spotifyPlaylists => {
|
||||
if (spotifyPlaylists.error === 'spotifyNotEnabled') {
|
||||
favoriteSpotifyPlaylists.value = []
|
||||
return
|
||||
}
|
||||
|
||||
favoriteSpotifyPlaylists.value = spotifyPlaylists
|
||||
})
|
||||
.catch(console.error)
|
||||
|
Loading…
Reference in New Issue
Block a user