Skip to content
Snippets Groups Projects
Commit b89d6e0f authored by Tom Robinson's avatar Tom Robinson
Browse files

Possible fix for "Cannot read property '_location' of null" CI errors

parent c96f0cca
Branches
Tags
No related merge requests found
......@@ -28,7 +28,12 @@ export default class ErrorDetails extends React.Component {
style={{ fontFamily: "monospace" }}
className="QueryError2-detailBody bordered rounded bg-grey-0 text-bold p2 mt1"
>
{details}
{/* ensure we don't try to render anything except a string */}
{typeof details === "string"
? details
: typeof details.message === "string"
? details.message
: String(details)}
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment