Skip to content

Commit

Permalink
! Fix load more button appears when searching & visible items under p…
Browse files Browse the repository at this point in the history
…agination limit
  • Loading branch information
PikachuEXE committed Jan 31, 2024
1 parent 1bfe0ad commit 769626f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderer/views/Playlist/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default defineComponent({

moreVideoDataAvailable() {
if (this.isUserPlaylistRequested) {
return this.userPlaylistVisibleLimit < this.videoCount
return this.userPlaylistVisibleLimit < this.sometimesFilteredUserPlaylistItems.length
} else {
return this.continuationData !== null
}
Expand Down Expand Up @@ -140,7 +140,7 @@ export default defineComponent({
return this.playlistItems
}

if (this.userPlaylistVisibleLimit < this.videoCount) {
if (this.userPlaylistVisibleLimit < this.sometimesFilteredUserPlaylistItems.length) {
return this.sometimesFilteredUserPlaylistItems.slice(0, this.userPlaylistVisibleLimit)
} else {
return this.sometimesFilteredUserPlaylistItems
Expand Down

0 comments on commit 769626f

Please sign in to comment.