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

Commit 085e6e1

Browse files
committed
Fix js issue when displaying stacktraces in report
The issue was causing the following JS error : Uncaught TypeError: Cannot read property 'length' of undefined
1 parent 2ff3f57 commit 085e6e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

html-report/src/components/TestItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default class TestItem extends Component {
6666
</ul>
6767
</div>}
6868

69-
{ !!data.stacktrace.length && <div className="card">
69+
{ !!data.stacktrace && <div className="card">
7070
<div className="title-common">Stacktrace</div>
7171
<pre className="row" style={ { overflow: 'auto' } }>{ data.stacktrace }</pre>
7272
</div>}

0 commit comments

Comments
 (0)