angular-material-extensions / google-maps-autocomplete

Autocomplete input component and directive for google-maps built with angular and material design |
https://angular-material-extensions.github.io/google-maps-autocomplete
MIT License
169 stars 60 forks source link

Error Handling : #314

Closed nerd-cs closed 3 years ago

nerd-cs commented 3 years ago

Bug Report or Feature Request (mark with an x)

- [X] bug report -> please search issues before submitting
- [ ] feature request

OS and Version?

Windows 10, Ubuntu 20.04

Versions

Angular v11

Repro steps

https://angular-material-extensions.github.io/google-maps-autocomplete/ Please just input the location and press Enter key

The log given by the failure

ERROR TypeError: Cannot read property 'forEach' of undefined Error

Desired functionality

In the component and directive, I think error handing is required

if (place && place.address_components) { place.address_components.forEach(...) }

Mention any other details that might be useful

Error repro

AnthonyNahas commented 3 years ago

this has been fixed with the latest version actually.