Skip to content

Commit

Permalink
hide
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Feb 5, 2025
1 parent b4f51d4 commit 49b7a07
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions report/renderer/performance-category-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,15 +202,18 @@ export class PerformanceCategoryRenderer extends CategoryRenderer {
}

// Insights
const [insightsGroupEl, insightsFooterEl] = this.renderAuditGroup(groups['insights']);
insightsGroupEl.classList.add('lh-audit-group--insights');
for (const audit of category.auditRefs.filter(audit => audit.group === 'insights')) {
const auditEl = this.renderAudit(audit);
insightsGroupEl.append(auditEl);
}
element.append(insightsGroupEl);
if (insightsFooterEl) {
element.append(insightsFooterEl);
const insightAudits = category.auditRefs.filter(audit => audit.group === 'insights');
if (insightAudits.length) {
const [insightsGroupEl, insightsFooterEl] = this.renderAuditGroup(groups['insights']);
insightsGroupEl.classList.add('lh-audit-group--insights');
for (const audit of category.auditRefs.filter(audit => audit.group === 'insights')) {
const auditEl = this.renderAudit(audit);
insightsGroupEl.append(auditEl);
}
element.append(insightsGroupEl);
if (insightsFooterEl) {
element.append(insightsFooterEl);
}
}

// Diagnostics
Expand Down

0 comments on commit 49b7a07

Please sign in to comment.