diff --git a/src/cms/preview-templates/page-preview.js b/src/cms/preview-templates/page-preview.js index f91195a..ee537dd 100644 --- a/src/cms/preview-templates/page-preview.js +++ b/src/cms/preview-templates/page-preview.js @@ -1,13 +1,13 @@ import React from 'react'; const PagePreview = ({ entry, widgetFor }) => { - const body = widgetFor(['body']); + const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return (

{title}

-
+
{ body }
); }; diff --git a/src/cms/preview-templates/post-preview.js b/src/cms/preview-templates/post-preview.js index bf64eb2..82a12fb 100644 --- a/src/cms/preview-templates/post-preview.js +++ b/src/cms/preview-templates/post-preview.js @@ -1,13 +1,13 @@ import React from 'react'; const PostPreview = ({ entry, widgetFor }) => { - const body = widgetFor(['body']); + const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return (

{title}

-
+
{body}
); };