1
0
mirror of https://github.com/TeamPiped/Piped.git synced 2024-12-13 22:00:28 +05:30

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);