From 111091f36ff88ab802fa4b7e79a64758a6e7c218 Mon Sep 17 00:00:00 2001 From: Adrian Smijulj Date: Fri, 18 Oct 2019 18:17:36 +0200 Subject: [PATCH] fix: use "region" value from state, not from inputs --- packages/api-page-builder/src/plugins/graphql/Page.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/api-page-builder/src/plugins/graphql/Page.js b/packages/api-page-builder/src/plugins/graphql/Page.js index 70da39e94b4..2d83c003a9e 100644 --- a/packages/api-page-builder/src/plugins/graphql/Page.js +++ b/packages/api-page-builder/src/plugins/graphql/Page.js @@ -265,6 +265,11 @@ export default { return { __typename: "SecurityUser", id: page.updatedBy }; } }, + PbElement: { + preview(pbElement) { + return { __typename: "File", id: pbElement.preview }; + } + }, PbQuery: { getPage: resolveGet(pageFetcher), listPages: listPages, @@ -275,7 +280,7 @@ export default { getErrorPage, listElements: resolveList(elementFetcher), searchTags: searchTags, - oembedData: oembed + oembedData: oembed, }, PbMutation: { // Creates a new page