added source code toggle control to examples

development
mcyph 2021-03-25 19:04:22 +11:00
parent f0ec7a3157
commit ff0ca898ab
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ function Preview({ sourceKey, content }) {
hide source
</span>
<div style={{clear: "both", resize: "both", maxHeight: "50vh", overflow: "auto"}}>
<SourceCodeDisplay language="javascript" code={examplesListing[sourceKey]} />
<SourceCodeDisplay language="javascript" code={examplesListing[sourceKey]||''} />
</div>
</div>
) : (