From 03f40662fdbac55b70d76d004340442df9a0da33 Mon Sep 17 00:00:00 2001 From: Alexander Heimbuch Date: Mon, 15 Jul 2024 10:12:15 +0200 Subject: [PATCH] fix(page): filter episodes without valid ids --- apps/page/src/logic/data/feed-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/page/src/logic/data/feed-parser.ts b/apps/page/src/logic/data/feed-parser.ts index 93ae1e56a..c127594d4 100644 --- a/apps/page/src/logic/data/feed-parser.ts +++ b/apps/page/src/logic/data/feed-parser.ts @@ -145,7 +145,7 @@ const transform = show: transformShow(data), episodes: await Promise.all( castArray(get(data, ['channel', 'item'], [])).map(resolveEpisode(episodeId)) - ), + ).then(episodes => episodes.filter(episode => episode.id !== null)), hosts: castArray(get(data, ['channel', 'podcast:person'], [])).map(transformPerson) });