Skip to content

Commit 37ec0d9

Browse files
authored
Merge pull request #20 from Webperf-se/bug
Fixed c&p bug
2 parents ae83344 + 0614ff3 commit 37ec0d9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ export default class WebPerfPlugin extends SitespeedioPlugin {
152152
};
153153
}
154154

155-
this.data[group].issues.push(...entry.issues);
156-
this.data[group].totalIssues = this.data[group].issues.length; // Update totalIssues
155+
this.data[group].allIssues.push(...entry.issues);
156+
this.data[group].totalIssues = this.data[group].allIssues.length; // Update totalIssues
157157

158158
// Group issues by rule
159159
for (const issue of entry.issues) {
@@ -178,9 +178,9 @@ export default class WebPerfPlugin extends SitespeedioPlugin {
178178
// Update totalGroupedIssues
179179
this.data[group].totalGroupedIssues = Object.keys(this.data[group].groupedIssues).length;
180180

181-
this.data[group].nofIssuesWithCritical = Object.keys(this.data[group].criticalIssues).length;
182-
this.data[group].nofIssuesWithError = Object.keys(this.data[group].errorIssues).length;
183-
this.data[group].nofIssuesWithWarning = Object.keys(this.data[group].warningIssues).length;
181+
this.data[group].nofIssuesWithCritical = this.data[group].criticalIssues.length;
182+
this.data[group].nofIssuesWithError = this.data[group].errorIssues.length;
183+
this.data[group].nofIssuesWithWarning = this.data[group].warningIssues.length;
184184
}
185185

186186
await this.storageManager.writeData(

0 commit comments

Comments
 (0)