added a fix for null crashing a page in bindings

This commit is contained in:
Nikhil Nandagopal 2020-11-03 21:14:47 +05:30
parent 0538c08bcd
commit 8a1be448e1

View File

@ -143,7 +143,7 @@ export const CurrentValueViewer = (props: {
} else { } else {
content = ( content = (
<CodeWrapper colorTheme={props.theme}> <CodeWrapper colorTheme={props.theme}>
{props.evaluatedValue.toString()} {props.evaluatedValue ? props.evaluatedValue.toString() : "null"}
</CodeWrapper> </CodeWrapper>
); );
} }