Skip to content

Commit

Permalink
fix(templates): website template issue with previewing drafts (#8714)
Browse files Browse the repository at this point in the history
Fixes #8708
  • Loading branch information
paulpopus authored Oct 15, 2024
1 parent 2315719 commit 303a224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/website/src/app/(frontend)/next/preview/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export async function GET(
try {
const docs = await payload.find({
collection: collection,
draft: true,
where: {
slug: {
equals: slug,
Expand Down

0 comments on commit 303a224

Please sign in to comment.