Skip to content
Snippets Groups Projects
Commit bf496786 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: wait for tank session before requesting playlists for shows

parent 96a31209
Branches
Tags
No related merge requests found
......@@ -68,12 +68,13 @@ watchEffect(async () => {
})
watch(
() => store.getters['shows/selectedShow'],
(show) => {
if (show) {
[() => store.getters['shows/selectedShow'], () => authStore.currentUser],
([show, user]) => {
if (show && user) {
store.dispatch('playlists/fetch', { showSlug: show.slug })
}
},
{ immediate: true },
)
void authStore.init()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment