Skip to content

Commit

Permalink
* Don't remember pagination limit, which reintroduce performance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuEXE committed Jan 23, 2024
1 parent f1d700d commit 88a4c1f
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/renderer/views/Playlist/Playlist.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,6 @@ export default defineComponent({
this.getPlaylistInfoDebounce()
},
userPlaylistVisibleVideoLimit (val) {
sessionStorage.setItem(`Playlist/userPlaylistVisibleVideoLimit/${this.playlistId}`, val)

if (this.selectedUserPlaylistVideos.length < this.userPlaylistVisibleVideoLimit) {
this.playlistItems = this.selectedUserPlaylistVideos
} else {
Expand All @@ -169,11 +167,6 @@ export default defineComponent({
},
},
mounted: function () {
const limit = sessionStorage.getItem(`Playlist/userPlaylistVisibleVideoLimit/${this.playlistId}`)
if (limit !== null) {
this.userPlaylistVisibleVideoLimit = limit
}

this.getPlaylistInfoDebounce = debounce(this.getPlaylistInfo, 100)
this.getPlaylistInfoDebounce()
},
Expand Down

0 comments on commit 88a4c1f

Please sign in to comment.