From 2d5cb87e99f628dc78fd157465a6d0ccc4a4af02 Mon Sep 17 00:00:00 2001 From: Hossein Mehrabi Date: Tue, 29 Aug 2023 18:48:00 +0330 Subject: [PATCH] fix: populate missing showId on latest episodes --- src/pages/podcasts/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/podcasts/index.tsx b/src/pages/podcasts/index.tsx index af89bbd..31d8190 100644 --- a/src/pages/podcasts/index.tsx +++ b/src/pages/podcasts/index.tsx @@ -51,7 +51,7 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => { const { data: latestEpisodes } = await unbodyApi.getPodcastEpisodes({ limit: 10, - populateShow: false, + populateShow: true, highlighted: 'exclude', }) @@ -65,8 +65,8 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => { return { props: { shows: podcastShows, - latestEpisodes, highlightedEpisodes, + latestEpisodes: latestEpisodes.map((ep) => ({ ...ep, show: null })), // errors, }, }