mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-01-09 19:10:27 +05:30
fix: crash when failed to load stream info
This commit is contained in:
parent
17414a3e58
commit
4f1c8e514c
@ -13,7 +13,7 @@
|
|||||||
>
|
>
|
||||||
<canvas id="preview" ref="preview" class="rounded-sm" />
|
<canvas id="preview" ref="preview" class="rounded-sm" />
|
||||||
<span
|
<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]"
|
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 }}
|
{{ video.chapters.findLast(chapter => chapter.start < currentTime)?.title }}
|
||||||
|
Loading…
Reference in New Issue
Block a user