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({
|
const { data: latestEpisodes } = await unbodyApi.getPodcastEpisodes({
|
||||||
limit: 10,
|
limit: 10,
|
||||||
populateShow: false,
|
populateShow: true,
|
||||||
highlighted: 'exclude',
|
highlighted: 'exclude',
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -65,8 +65,8 @@ export const getStaticProps = async ({ params }: GetStaticPropsContext) => {
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
shows: podcastShows,
|
shows: podcastShows,
|
||||||
latestEpisodes,
|
|
||||||
highlightedEpisodes,
|
highlightedEpisodes,
|
||||||
|
latestEpisodes: latestEpisodes.map((ep) => ({ ...ep, show: null })),
|
||||||
// errors,
|
// errors,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue