Skip to content

Commit

Permalink
bugfix fix undefined genre from api on archive genre filter
Browse files Browse the repository at this point in the history
  • Loading branch information
antiantivirus committed Sep 9, 2024
1 parent a53fb66 commit 5728c23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contentful/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function getPastShows(
slug: show.slug,
mixcloudLink: show.mixcloudLink,
coverImage: show.coverImage.url,
genres: show.genresCollection.items.map((genre) => genre.name),
genres: show.genresCollection.items.map((genre) => genre?.name),
}));

const filtered = processed.filter(
Expand Down

0 comments on commit 5728c23

Please sign in to comment.