Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
pmelab committed Dec 13, 2023
1 parent 2a0c574 commit e1e0665
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/website/src/preview/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export default function PagePreview() {
}
: undefined,
);
return data?.previewPage ? <Page page={data.previewPage} /> : <Loading />;
return data?.preview ? <Page page={data.preview} /> : <Loading />;
}
2 changes: 1 addition & 1 deletion apps/website/src/templates/decap-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';

export const query = graphql`
query DecapPageTemplate($id: String!) {
decapPage(id: { eq: $id }) {
page: decapPage(id: { eq: $id }) {
...Page
}
}
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/templates/drupal-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react';

export const query = graphql`
query DrupalPageTemplate($remoteId: String!) {
drupalPage(_id: { eq: $remoteId }) {
page: drupalPage(_id: { eq: $remoteId }) {
...Page
}
}
Expand Down

0 comments on commit e1e0665

Please sign in to comment.