From b8463d74ff8fbbefc16b6633be1afd08087033e4 Mon Sep 17 00:00:00 2001 From: DeNNiiInc Date: Mon, 29 Dec 2025 12:42:26 +1100 Subject: [PATCH] Fix vitals.html data parsing for file reports --- vitals.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vitals.html b/vitals.html index c8c4776..a1adc9c 100644 --- a/vitals.html +++ b/vitals.html @@ -123,7 +123,8 @@ function renderVitals(data) { document.getElementById('loading').style.display = 'none'; - const details = data.metrics.details || {}; // This comes from my runner.js update + // Check both root details (file format) and metrics.details (DB format) + const details = data.details || (data.metrics && data.metrics.details) || {}; // LCP const lcpSec = document.getElementById('lcp-section');