From 769626f5af67963001a7c38ef0284f37b0044fca Mon Sep 17 00:00:00 2001 From: PikachuEXE Date: Wed, 31 Jan 2024 15:56:10 +0800 Subject: [PATCH] ! Fix load more button appears when searching & visible items under pagination limit --- src/renderer/views/Playlist/Playlist.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/views/Playlist/Playlist.js b/src/renderer/views/Playlist/Playlist.js index 42f374faa5d97..31e7532dc9d39 100644 --- a/src/renderer/views/Playlist/Playlist.js +++ b/src/renderer/views/Playlist/Playlist.js @@ -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 } @@ -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