diff --git a/src/core/components/errors.jsx b/src/core/components/errors.jsx index c72dd2fd..c3d6cf93 100644 --- a/src/core/components/errors.jsx +++ b/src/core/components/errors.jsx @@ -113,7 +113,7 @@ const SpecErrorItem = ( { error, jumpToLine } ) => { } function toTitleCase(str) { - return str + return (str || "") .split(" ") .map(substr => substr[0].toUpperCase() + substr.slice(1)) .join(" ")