fix: populate missing showId on latest episodes
This commit is contained in:
parent
dc3ed4b02c
commit
2d5cb87e99
|
@ -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,
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue