Skip to content

Commit

Permalink
Fix code comments from last PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gnidan committed Jan 7, 2024
1 parent 354e71b commit 558898a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import GenerateFriendlyName from '@theme-original/JSONSchemaViewer/utils/generat
export default function GenerateFriendlyNameWrapper(props) {
const { schema } = props;

// otherwise just use default rendering
return (
<>
<GenerateFriendlyName {...props} />
{
// check for const value and show this value in this summary if exists
"const" in schema
? <span>
<> = </><code>{JSON.stringify(schema.const)}</code>
Expand Down

0 comments on commit 558898a

Please sign in to comment.