1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2025-01-08 18:40:28 +05:30

fix: crash when failed to load stream info

This commit is contained in:
Bnyro 2025-01-07 12:58:58 +01:00
parent 17414a3e58
commit 4f1c8e514c

View File

@ -13,7 +13,7 @@
>
<canvas id="preview" ref="preview" class="rounded-sm" />
<span
v-if="video.chapters.length > 1"
v-if="(video?.chapters?.length ?? 0) > 1"
class="mt-2 text-sm drop-shadow-[0_0_2px_white] -mb-2 .dark:drop-shadow-[0_0_2px_black]"
>
{{ video.chapters.findLast(chapter => chapter.start < currentTime)?.title }}