Skip to content

Commit

Permalink
rolled back changes to ObjectPreview.js
Browse files Browse the repository at this point in the history
  • Loading branch information
smnh committed Dec 13, 2018
1 parent 9413855 commit e0cb84d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/netlify-cms-widget-object/src/ObjectPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import { WidgetPreviewContainer } from 'netlify-cms-ui-default';

const ObjectPreview = ({ field }) => (
<WidgetPreviewContainer>
<div>{field.get('label', field.get('name'))}</div>
{(field && (field.get('types') || field.get('fields') || field.get('field'))) || null}
{(field && field.get('fields')) || field.get('field') || null}
</WidgetPreviewContainer>
);

Expand Down

0 comments on commit e0cb84d

Please sign in to comment.