Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Fix js issue when displaying stacktraces in report
Browse files Browse the repository at this point in the history
The issue was causing the following JS error :
Uncaught TypeError: Cannot read property 'length' of undefined
  • Loading branch information
flolom committed Jun 28, 2019
1 parent 2ff3f57 commit 085e6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html-report/src/components/TestItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default class TestItem extends Component {
</ul>
</div>}

{ !!data.stacktrace.length && <div className="card">
{ !!data.stacktrace && <div className="card">
<div className="title-common">Stacktrace</div>
<pre className="row" style={ { overflow: 'auto' } }>{ data.stacktrace }</pre>
</div>}
Expand Down

0 comments on commit 085e6e1

Please sign in to comment.