diff --git a/telemetry/ui/src/components/routes/app/ActionView.tsx b/telemetry/ui/src/components/routes/app/ActionView.tsx index f2912751..7180f6c5 100644 --- a/telemetry/ui/src/components/routes/app/ActionView.tsx +++ b/telemetry/ui/src/components/routes/app/ActionView.tsx @@ -11,13 +11,14 @@ import { base16AteliersulphurpoolLight } from 'react-syntax-highlighter/dist/esm */ export const CodeView = (props: { code: string }) => { return ( -
{props.error}; + return ( + <> +
{props.error}+ > + ); }; export const DataView = (props: { currentStep: Step | undefined; priorStep: Step | undefined }) => { const [whichState, setWhichState] = useState<'after' | 'before'>('after'); const stepToExamine = whichState === 'after' ? props.currentStep : props.priorStep; const stateData = stepToExamine?.step_end_log?.state; - const resultData = stepToExamine?.step_end_log?.result; + const resultData = stepToExamine?.step_end_log?.result || undefined; const inputs = stepToExamine?.step_start_log?.inputs; const error = props.currentStep?.step_end_log?.exception; const [viewRawData, setViewRawData] = useState<'raw' | 'render'>('render'); return ( -
- {value} --
+ {value} +
NULL+
{value.toString()}+