Fix error on rendering chapters.

This commit is contained in:
Kavin 2022-06-02 04:29:16 +01:00
parent 5e47758bb0
commit f149ac95bb
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -1,6 +1,6 @@
<template> <template>
<h2 v-t="'video.chapters'" /> <h2 v-t="'video.chapters'" />
<div :key="chapter.start" v-for="chapter in props.chapters" @click="$emit('seek', chapter.start)" class="chapter"> <div :key="chapter.start" v-for="chapter in chapters" @click="$emit('seek', chapter.start)" class="chapter">
<img :src="chapter.image" :alt="chapter.title" class="h-12" /> <img :src="chapter.image" :alt="chapter.title" class="h-12" />
<div class="ml-1"> <div class="ml-1">
<span class="text-xl" v-text="chapter.title" /> <span class="text-xl" v-text="chapter.title" />