From 2e22d8a910181bcc991bc81dc977a678be5c4e88 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 16 Nov 2021 20:04:01 +0530 Subject: [PATCH] Don't show progress if the data is from an older schema --- src/components/VideoItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoItem.vue b/src/components/VideoItem.vue index bae6639..b4286b2 100644 --- a/src/components/VideoItem.vue +++ b/src/components/VideoItem.vue @@ -59,7 +59,7 @@ export default { const lastVideo = await findLastWatch(videoId) if (lastVideo != null) { this.alreadyWatched = true - this.progress = Math.min((lastVideo.progress / lastVideo.video.duration) * 100, 100) + this.progress = lastVideo.progress != null ? Math.min((lastVideo.progress / lastVideo.video.duration) * 100, 100) : 100 } } },