Small fix for error thrown when song doesn't have lyrics

This commit is contained in:
lucast committed 2026-03-08 12:07:52 +01:00
1 parent af3b9669dc
commit c5cd36f5e5
1 file changed
+2 -2
@@ -114,7 +114,7 @@ const finalTransform = computed(() => {
<template> <template>
<div <div
ref="outer-ref" ref="outer-ref"
v-if="song && song.lyrics.synced" v-if="song && song.lyrics && song.lyrics.synced"
class="synced-lyrics-container" class="synced-lyrics-container"
:style="{ :style="{
height: `${height}px`, height: `${height}px`,
@@ -141,7 +141,7 @@ const finalTransform = computed(() => {
</div> </div>
</div> </div>
<div <div
v-else-if="song" v-else-if="song && song.lyrics && song.lyrics.text"
class="lyrics" class="lyrics"
:style="{ :style="{
height: `${height}px`, height: `${height}px`,