Skip to content

Commit 769626f

Browse files
committed
! Fix load more button appears when searching & visible items under pagination limit
1 parent 1bfe0ad commit 769626f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderer/views/Playlist/Playlist.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export default defineComponent({
107107

108108
moreVideoDataAvailable() {
109109
if (this.isUserPlaylistRequested) {
110-
return this.userPlaylistVisibleLimit < this.videoCount
110+
return this.userPlaylistVisibleLimit < this.sometimesFilteredUserPlaylistItems.length
111111
} else {
112112
return this.continuationData !== null
113113
}
@@ -140,7 +140,7 @@ export default defineComponent({
140140
return this.playlistItems
141141
}
142142

143-
if (this.userPlaylistVisibleLimit < this.videoCount) {
143+
if (this.userPlaylistVisibleLimit < this.sometimesFilteredUserPlaylistItems.length) {
144144
return this.sometimesFilteredUserPlaylistItems.slice(0, this.userPlaylistVisibleLimit)
145145
} else {
146146
return this.sometimesFilteredUserPlaylistItems

0 commit comments

Comments
 (0)