Skip to content

Commit 29fe049

Browse files
GatsbyJS BotTylerBarnes
andauthored
fix(gatsby-source-wordpress): pass missing property helpers to gql fetch util (#30727) (#30731)
(cherry picked from commit 6b2fd94) Co-authored-by: Tyler Barnes <tyler@gatsbyjs.com>
1 parent 65a0a03 commit 29fe049

File tree

1 file changed

+3
-1
lines changed
  • packages/gatsby-source-wordpress/src/steps/preview

1 file changed

+3
-1
lines changed

packages/gatsby-source-wordpress/src/steps/preview/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,10 @@ export const sourcePreview = async (
310310
* It first sources all pending preview actions, then calls sourcePreview() for each of them.
311311
*/
312312
export const sourcePreviews = async (
313-
{ webhookBody, reporter }: GatsbyHelpers,
313+
helpers: GatsbyHelpers,
314314
pluginOptions: IPluginOptions
315315
): Promise<void> => {
316+
const { webhookBody, reporter } = helpers
316317
const {
317318
debug: { preview: inPreviewDebugModeOption },
318319
} = getPluginOptions()
@@ -341,6 +342,7 @@ export const sourcePreviews = async (
341342
WPGatsbyPreview: webhookBody.token,
342343
WPGatsbyPreviewUser: webhookBody.userDatabaseId,
343344
},
345+
helpers,
344346
query: /* GraphQL */ `
345347
query PREVIEW_ACTIONS($after: String) {
346348
actionMonitorActions(

0 commit comments

Comments
 (0)