Skip to content

Commit

Permalink
fix bug with related news causing 500 errors on article preview links
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack MB committed Jun 4, 2024
1 parent 4e1444f commit 5d55ae9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/contentful/pages/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export async function getNewsPageSingle(slug: string, preview: boolean) {
limit: 3
where: { slug_not: $slug }
order: date_DESC
preview: $preview
preview: false
) {
items {
...RelatedArticleFragment
Expand Down

0 comments on commit 5d55ae9

Please sign in to comment.