- ({ videos, totalVideos }) => {
- this.videos = this.videos.concat(videos)
- this.pagination.totalItems = totalVideos
+ ([ videosResult, videoChannelsResult ]) => {
+ this.videos = this.videos.concat(videosResult.videos)
+ this.pagination.totalItems = videosResult.totalVideos + videoChannelsResult.total
+
+ this.videoChannels = this.videoChannels.concat(videoChannelsResult.data)
+
+ // Focus on channels
+ if (this.channelsPerPage !== 10 && this.videos.length < this.pagination.itemsPerPage) {
+ this.resetPagination()
+
+ this.channelsPerPage = 10
+ this.search()
+ }