aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/CoverageListing.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/CoverageListing.js b/src/CoverageListing.js
index 8b7830c..5c57907 100644
--- a/src/CoverageListing.js
+++ b/src/CoverageListing.js
@@ -51,7 +51,11 @@ export class CoverageListing extends Component {
51 } 51 }
52 52
53 _updateCoverageMap() { 53 _updateCoverageMap() {
54 const coverageMap = this.props.coverage.reduce((map, line) => (map[parseInt(line.$.nr)] = line.$, map), {}); 54 const coverageMap = this.props.coverage.reduce(function(map, line) {
55 map[parseInt(line.$.nr)] = line.$;
56 return map;
57 }, {});
58
55 this.setState({ coverageMap: coverageMap }); 59 this.setState({ coverageMap: coverageMap });
56 } 60 }
57 61