diff --git a/packages/api-explorer/src/CodeSample.jsx b/packages/api-explorer/src/CodeSample.jsx index f42a5fe0a..f01cc0d4d 100644 --- a/packages/api-explorer/src/CodeSample.jsx +++ b/packages/api-explorer/src/CodeSample.jsx @@ -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 })} );