Allow undefined this.sponsors.segments

This commit is contained in:
root
2022-06-13 21:10:10 +05:30
parent 493c8ab78a
commit b069e977d5
+1 -1
View File
@@ -305,7 +305,7 @@ export default {
}
const array = ['to right']
this.sponsors?.segments.forEach(segment => {
this.sponsors?.segments?.forEach(segment => {
const start = (segment.segment[0] / this.video.duration) * 100
const end = (segment.segment[1] / this.video.duration) * 100
let color