Skip to content

Commit c7abc1c

Browse files
Update [episode].html.md.ts
1 parent b8cb80b commit c7abc1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pages/[episode].html.md.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export const GET: APIRoute = async ({ props }) => {
3030
let transcriptContent = '';
3131
if (episode.episodeNumber && episode.episodeNumber !== 'Bonus') {
3232
const transcript = await getEntry('transcripts', episode.episodeNumber);
33-
if (transcript) {
33+
if (transcript?.body) {
3434
// Clean the transcript by removing timestamps
3535
transcriptContent = cleanTranscript(transcript.body);
3636
}

0 commit comments

Comments
 (0)