Skip to content

Commit

Permalink
Merge pull request #99 from krckyboy/#98
Browse files Browse the repository at this point in the history
  • Loading branch information
krckyboy authored Jun 8, 2024
2 parents 5a1847b + e93dc8a commit c62bbde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/scripts/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ export const db = {
filters: {
slug: slug
},
populate: ['categories']
populate: ['categories'],
// Allows us to fetch unpublished posts for testing purpose, but they will not show up in /blog.
publicationState: 'preview'
};

const queryString = qs.stringify(queryParams);
Expand Down

0 comments on commit c62bbde

Please sign in to comment.