File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
packages/overlay/src/integrations/sentry/utils Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ ' @spotlightjs/spotlight ' : patch
3+ ' @spotlightjs/electron ' : patch
4+ ' @spotlightjs/overlay ' : patch
5+ ' @spotlightjs/astro ' : patch
6+ ---
7+
8+ Fix rare error when ` score.total ` is missing from ` measurements `
Original file line number Diff line number Diff line change 1- import { SentryEvent } from '~/integrations/sentry/types' ;
2- import { WebVitals } from '../constants' ;
1+ import type { SentryEvent } from '~/integrations/sentry/types' ;
2+ import type { WebVitals } from '../constants' ;
33
44const SQRT_2 = Math . sqrt ( 2 ) ;
55
@@ -155,7 +155,7 @@ export function normalizePerformanceScore(
155155 } ;
156156 }
157157
158- if ( shouldAddTotal ) {
158+ if ( shouldAddTotal && ! Object . prototype . hasOwnProperty . call ( measurements , 'score.total' ) ) {
159159 measurements [ 'score.total' ] = {
160160 value : scoreTotal ,
161161 unit : 'ratio' ,
You can’t perform that action at this time.
0 commit comments