Places service: only request place location

dependabot/npm_and_yarn/vite-4.2.3
Anthony Catel 2023-03-22 14:58:57 +01:00
rodzic 9111c5fc12
commit 15271785c7
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -85,7 +85,8 @@
placesService.getDetails({ placesService.getDetails({
sessionToken, sessionToken,
placeId: rest.predictions[0].place_id placeId: rest.predictions[0].place_id,
fields: ['geometry.location']
}, (res) => { }, (res) => {
if (!res?.geometry?.location) { if (!res?.geometry?.location) {
return; return;