mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 22:24:54 +03:00
Revert to stringify
This commit is contained in:
parent
63fcfa66f6
commit
8b216c7549
|
@ -15,7 +15,7 @@ export class FieldDetail extends React.PureComponent<FieldDetailProps> {
|
||||||
<div>
|
<div>
|
||||||
<FieldLabel> {this.props.label} </FieldLabel>{' '}
|
<FieldLabel> {this.props.label} </FieldLabel>{' '}
|
||||||
<ExampleValue>
|
<ExampleValue>
|
||||||
{typeof this.props.value === 'string' ? this.props.value : JSON.stringify(this.props.value)}
|
{JSON.stringify(this.props.value)}
|
||||||
</ExampleValue>
|
</ExampleValue>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user