From 085e6e1c6e37b74548e1ef4d7682a91b0af31ee1 Mon Sep 17 00:00:00 2001 From: Francois Lolom Date: Tue, 11 Dec 2018 18:49:31 +0100 Subject: [PATCH] Fix js issue when displaying stacktraces in report The issue was causing the following JS error : Uncaught TypeError: Cannot read property 'length' of undefined --- html-report/src/components/TestItem.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html-report/src/components/TestItem.js b/html-report/src/components/TestItem.js index 7cd5285..619cde6 100644 --- a/html-report/src/components/TestItem.js +++ b/html-report/src/components/TestItem.js @@ -66,7 +66,7 @@ export default class TestItem extends Component { } - { !!data.stacktrace.length &&
+ { !!data.stacktrace &&
Stacktrace
{ data.stacktrace }
}