PlacesAutocomplete call crashes if the optional location field is present but undefined #1052
Labels
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
PlacesAutocomplete call crashes if the optional
params.location
field is present but undefined.Environment details
OS: macOS Ventura 13.4
Library version: 3.3.41
Steps to reproduce
Call
placesAutocomplete
with{ params: { ...rest, location: undefined } }
Code example
Stack trace
If the location is completely unspecified, the function call works fine. This can be solved by defining
location
like:The text was updated successfully, but these errors were encountered: