Skip to content

Commit

Permalink
report: use normal gauge if performance score is null (#15554)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamraine authored Oct 19, 2023
1 parent f1a5e59 commit 022f74a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion report/renderer/performance-category-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,8 @@ export class PerformanceCategoryRenderer extends CategoryRenderer {
element.append(groupEl);
}

if (!options || options?.gatherMode === 'navigation') {
const isNavigationMode = !options || options?.gatherMode === 'navigation';
if (isNavigationMode && category.score !== null) {
const el = createGauge(this.dom);
updateGauge(this.dom, el, category);
this.dom.find('.lh-score__gauge', element).replaceWith(el);
Expand Down

0 comments on commit 022f74a

Please sign in to comment.