From dace12eb1bb346068f0542e7c8a23b4088cefcdf Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Tue, 14 Apr 2020 20:16:06 +0200 Subject: [PATCH] fix: add "preview" boolean field --- packages/app-page-builder/src/site/components/Page/graphql.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/app-page-builder/src/site/components/Page/graphql.ts b/packages/app-page-builder/src/site/components/Page/graphql.ts index c7b5d16ad1f..54a84633fc9 100644 --- a/packages/app-page-builder/src/site/components/Page/graphql.ts +++ b/packages/app-page-builder/src/site/components/Page/graphql.ts @@ -8,9 +8,9 @@ export const GET_PUBLISHED_PAGE = () => { .join("\n"); return gql` - query PbGetPublishedPage($id: ID, $url: String, $parent: ID, $returnNotFoundPage: Boolean, $returnErrorPage: Boolean) { + query PbGetPublishedPage($id: ID, $url: String, $parent: ID, $returnNotFoundPage: Boolean, $returnErrorPage: Boolean, $preview: Boolean) { pageBuilder { - page: getPublishedPage(id: $id, url: $url, parent: $parent, returnNotFoundPage: $returnNotFoundPage, returnErrorPage: $returnErrorPage) { + page: getPublishedPage(id: $id, url: $url, parent: $parent, returnNotFoundPage: $returnNotFoundPage, returnErrorPage: $returnErrorPage, preview: $preview) { data { id title