Fix show slug in news page

This commit is contained in:
Zoe Roux 2024-02-05 23:37:13 +01:00
parent 8b2c0f732f
commit 2067a58c70

View File

@ -57,7 +57,7 @@ export const NewsList = () => {
<EpisodeBox
isLoading={x.isLoading as any}
slug={x.slug}
showSlug={x.kind === "episode" ? x.showId : null}
showSlug={x.kind === "episode" ? x.show!.slug : null}
name={x.kind === "episode" ? `${x.show!.name} ${episodeDisplayNumber(x)}` : undefined}
overview={x.name}
thumbnail={x.thumbnail}