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.
1 parent 85001b9 commit fb6f0ccCopy full SHA for fb6f0cc
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