Skip to content

Commit

Permalink
Merge pull request #368 from google/fix/stuck-in-analytics-setup
Browse files Browse the repository at this point in the history
Fix undefined variable access preventing completion of Analytics setup when there is no matching property
  • Loading branch information
felixarntz authored Jul 31, 2019
2 parents 8ba0935 + c70ca3a commit 4c69165
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/modules/analytics/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ class AnalyticsSetup extends Component {
}
}

if ( 0 < matchedProperty.length ) {
if ( matchedProperty && matchedProperty.length ) {
selectedAccount = matchedProperty[0].accountId;
selectedProperty = matchedProperty[0].id;
const matchedProfile = responseData.profiles.filter( profile => {
Expand Down

0 comments on commit 4c69165

Please sign in to comment.