Revert to stringify

This commit is contained in:
Jon Nicholson 2019-05-08 19:53:44 +01:00 committed by GitHub
parent 63fcfa66f6
commit 8b216c7549
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ export class FieldDetail extends React.PureComponent<FieldDetailProps> {
<div>
<FieldLabel> {this.props.label} </FieldLabel>{' '}
<ExampleValue>
{typeof this.props.value === 'string' ? this.props.value : JSON.stringify(this.props.value)}
{JSON.stringify(this.props.value)}
</ExampleValue>
</div>
);