Skip to content

Commit

Permalink
fix(templates): website template issue with previewing drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpopus committed Oct 15, 2024
1 parent f1ebf56 commit 447f6ae
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 447f6ae

Please sign in to comment.