Skip to content

Commit

Permalink
feat: update condition
Browse files Browse the repository at this point in the history
  • Loading branch information
altaywtf committed Dec 15, 2023
1 parent 5e062c4 commit ecc90a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/shows/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const fetchShowWithEpisodes = async (id: ShowId) => {

const response = await supabase
.from('show')
.select('*, episodes:episode(*, episode_content(id))')
.select('*, episodes:episode(*, episode_content(id, text_summary))')
.eq('id', id)
.single();

Expand Down Expand Up @@ -76,7 +76,7 @@ export default async function Page(props: { params: { id: ShowId } }) {
<Grid gap="6">
{data.episodes.map((episode) => (
<EpisodeCard
hasContent={Boolean(episode.episode_content)}
hasContent={Boolean(episode.episode_content?.text_summary)}
key={episode.id}
{...episode}
/>
Expand Down

0 comments on commit ecc90a0

Please sign in to comment.