Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit c73eb1a

Browse files
committed
Pass preview prop in static props
1 parent fe709be commit c73eb1a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api/wordpress/_global/getPostTypeStaticProps.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ export default async function getPostTypeStaticProps(
8282
const {apolloClient, error, ...postData} = await getPostTypeById(
8383
postType,
8484
id,
85-
idType
85+
idType,
86+
isCurrentPostPreview ? 'full' : null
8687
)
8788

8889
const props = {

0 commit comments

Comments
 (0)