From 7e3d87449cb6307d61bb3bbf7b5373a009acca03 Mon Sep 17 00:00:00 2001 From: William French Date: Fri, 12 Jul 2024 10:33:31 -0700 Subject: [PATCH] fix: Updates demo to correctly load Place library. (#1777) --- samples/place-autocomplete-element/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/place-autocomplete-element/index.ts b/samples/place-autocomplete-element/index.ts index d400dec230..24b5f308fb 100644 --- a/samples/place-autocomplete-element/index.ts +++ b/samples/place-autocomplete-element/index.ts @@ -9,9 +9,7 @@ async function initMap(): Promise { // [START maps_place_autocomplete_element_add] // Request needed libraries. //@ts-ignore - const [{ Map }] = await Promise.all([ - google.maps.importLibrary("places"), - ]); + await google.maps.importLibrary("places") as google.maps.PlacesLibrary; // Create the input HTML element, and append it. //@ts-ignore const placeAutocomplete = new google.maps.places.PlaceAutocompleteElement();