Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const buildErrorString = (errors: SourceError[]) => {
return parseError(errors);
};
<pre>{renderResult(props.output.value)}</pre>
);
} else {
return (
<pre>{props.output.consoleLogs.join('\n')}</pre>
<pre>{renderResult(props.output.value)}</pre>
);
}
case 'errors':
if (props.output.consoleLogs.length === 0) {
return (
<pre>{parseError(props.output.errors)}</pre>
);
} else {
return (
<pre>{props.output.consoleLogs.join('\n')}</pre>
<br>
<pre>{parseError(props.output.errors)}</pre>
);
}
default:
return '';
}
};