diff --git a/webui/src/use/favorites.js b/webui/src/use/favorites.js index 60926cb..3963779 100644 --- a/webui/src/use/favorites.js +++ b/webui/src/use/favorites.js @@ -1,5 +1,4 @@ import { ref, computed } from '@vue/composition-api' - import store from '@/store' import { fetchData } from '@/utils/api' import { toast } from '@/utils/toasts' @@ -20,7 +19,6 @@ const setAllFavorites = data => { const { tracks, albums, artists, playlists, lovedTracks } = data isRefreshingFavorites.value = false - favoriteArtists.value = artists || [] favoriteAlbums.value = albums || [] favoritePlaylists.value = playlists || [] @@ -47,10 +45,8 @@ const setSpotifyPlaylists = response => { favoriteSpotifyPlaylists.value = response || [] } -const refreshFavorites = async ({ isInitial = false }) => { - if (!isInitial) { - isRefreshingFavorites.value = true - } +const refreshFavorites = async () => { + isRefreshingFavorites.value = true await store.dispatch('refreshSpotifyStatus')