Closed Hropotova closed 10 months ago
Probably you need to check that place and geometry are defined
on my side I have no issue and it's typed like this
const onDepartureAutocompletePlaceChanged = () => {
setDepartureCoordinates(autocompleteDepartureRef.current?.getPlace()?.geometry?.location)
}
everything was fine with autocomplete for about a year, but yesterday this error appeared and I don't understand why I have it problem
© > Uncaught TypeError: Cannot read properties of undefined (reading 'location')