Add null check for videosStore.

Closes #2776
This commit is contained in:
Kavin 2023-08-07 19:50:25 +01:00
parent 981133ebd0
commit bc636b4064
No known key found for this signature in database
GPG key ID: 6E4598CA5C92C41F

View file

@ -136,6 +136,7 @@ export default {
}
},
loadMoreVideos() {
if (!this.videosStore) return;
this.currentVideoCount = Math.min(this.currentVideoCount + this.videoStep, this.videosStore.length);
if (this.videos.length != this.videosStore.length) {
this.videos = this.videosStore.slice(0, this.currentVideoCount);