Extra guard for missing crux data

This commit is contained in:
soulgalore 2024-07-12 04:59:33 +02:00
parent f6d4e0dcc3
commit cc42414ecf
1 changed files with 17 additions and 17 deletions

View File

@ -57,23 +57,23 @@ if experiences
td #{name} 75 percentile
td #{key.indexOf('cumulative') > -1 ? crux[experience][formFactor].data.record.metrics[key].percentiles.p75 : h.time.ms(crux[experience][formFactor].data.record.metrics[key].percentiles.p75)}
h4 Form factors
table
thead
tr
th Form factor
th Value
tbody
tr
td Desktop
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.desktop *100).toFixed(2)}%
tr
td Phone
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.phone *100).toFixed(2)}%
tr
td Tablet
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.tablet *100).toFixed(2)}%
if crux[experience][formFactor].FORM_FACTORS_FRACTIONS
h4 Form factors
table
thead
tr
th Form factor
th Value
tbody
tr
td Desktop
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.desktop *100).toFixed(2)}%
tr
td Phone
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.phone *100).toFixed(2)}%
tr
td Tablet
td #{Number(crux[experience][formFactor].FORM_FACTORS_FRACTIONS.tablet *100).toFixed(2)}%
if crux[experience][formFactor].NAVIGATION_TYPES_FRACTIONS