fix: Genre screen trying to refresh without a genre

This commit is contained in:
Phan An 2022-10-25 19:38:52 +02:00
parent b96e072c02
commit 0de19d09cf
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -150,5 +150,5 @@ onMounted(() => (name.value = getNameFromRoute()))
watch(name, async () => name.value && await refresh())
// We can't really tell how/if the genres have been updated, so we just refresh the list
eventBus.on('SONGS_UPDATED', async () => await refresh())
eventBus.on('SONGS_UPDATED', async () => genre.value && await refresh())
</script>