Skip to content

Commit

Permalink
fix: use "region" value from state, not from inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Oct 18, 2019
1 parent 81af843 commit 111091f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/api-page-builder/src/plugins/graphql/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -275,7 +280,7 @@ export default {
getErrorPage,
listElements: resolveList(elementFetcher),
searchTags: searchTags,
oembedData: oembed
oembedData: oembed,
},
PbMutation: {
// Creates a new page
Expand Down

0 comments on commit 111091f

Please sign in to comment.