Skip to content

Commit

Permalink
fix: don't remove 10 latest episodes
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jul 19, 2022
1 parent 33d184c commit e935028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/PodcastView/PodcastView.svelte
Expand Up @@ -51,7 +51,7 @@
const unsubscribeEpisodeCache = episodeCache.subscribe((cache) => {
latestEpisodes = Object.entries(cache)
.map(([_, episodes]) => episodes.splice(0, 10))
.map(([_, episodes]) => episodes.slice(0, 10))
.flat()
.sort((a, b) => {
if (a.episodeDate && b.episodeDate)
Expand Down

0 comments on commit e935028

Please sign in to comment.