Merge pull request #20162 from ganhammar/fix/correct-coverage-statistics
Fix/correct coverage statistics
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@backstage/plugin-code-coverage': patch
|
||||
---
|
||||
|
||||
Fixed the coverage history statistics to compare newest with oldest record
|
||||
@@ -113,8 +113,8 @@ export const CoverageHistoryChart = () => {
|
||||
);
|
||||
}
|
||||
|
||||
const oldestCoverage = valueHistory.history[0];
|
||||
const [latestCoverage] = valueHistory.history.slice(-1);
|
||||
const [oldestCoverage] = valueHistory.history.slice(-1);
|
||||
const latestCoverage = valueHistory.history[0];
|
||||
|
||||
const getTrendForCoverage = (type: Coverage) => {
|
||||
if (!oldestCoverage[type].percentage) {
|
||||
|
||||
Reference in New Issue
Block a user