An error occurred while running ‘mapSelect’: Cannot read properties of undefined (reading ‘forEach’) #10187
Labels
Module: Analytics
Google Analytics module related issues
P0
High priority
Team S
Issues for Squad 1
Type: Bug
Something isn't working
Type: Support
Support request
Bug Description
A couple of support topics were opened - although likely from admins of the same site, whereby the following dashboard error appears:
An error occurred while running ‘mapSelect’: Cannot read properties of undefined (reading ‘forEach’)
They mentioned that this occurred only after updating to the latest version of Site Kit (1.145.0).
Full error as reported in the forums:
This specific error was also raised by @wpdarren in Slack (link)
Within that discussion on this error, a recording with details was included.
Additional Context
cc. @aaemnnosttv
@wpdarren observed this independently in his own testing but was unable to reproduce
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
analytics-4
code base, particularly the datastore +getAnalyticsConfigByMeasurementIDs
selector for instances offorEach
on values which may not be definedImplementation Brief
getAnalyticsConfigByMeasurementIDs
to handle cases where an account summary may not have anypropertySummaries
as these are not set if the account has noneTest Coverage
QA Brief
Changelog entry
The text was updated successfully, but these errors were encountered: