Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
♻️ let the syntaxHandler handle the passed in value
Browse files Browse the repository at this point in the history
  • Loading branch information
dok committed Oct 24, 2019
1 parent de75ab7 commit 1291715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-explorer/src/CodeSample.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class CodeSample extends React.Component {
key={key} // eslint-disable-line react/no-array-index-key
style={{ display: selected ? 'block' : '' }}
>
{syntaxHighlighter(example.code || '', example.language, { dark: true })}
{syntaxHighlighter(example.code, example.language, { dark: true })}
</pre>
</div>
);
Expand Down

0 comments on commit 1291715

Please sign in to comment.