mirror of
https://gitlab.com/RemixDev/deemix-webui.git
synced 2024-12-29 10:56:05 +00:00
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 a new issue