We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 85001b9 + fb6f0cc commit 2fd95b6Copy full SHA for 2fd95b6
plugins/optimization-detective/detect.js
@@ -555,7 +555,7 @@ export default async function detect( {
555
const { log, warn, error } = logger;
556
compressionEnabled = gzdecodeAvailable;
557
558
- if ( isDebug ) {
+ if ( isDebug && Array.isArray( urlMetricGroupCollection?.groups ) ) {
559
const allUrlMetrics = /** @type Array<UrlMetricDebugData> */ [];
560
for ( const group of urlMetricGroupCollection.groups ) {
561
for ( const otherUrlMetric of group.url_metrics ) {
0 commit comments