This commit is contained in:
vishnukvmd 2024-01-23 16:22:31 +05:30
parent 94d6d34625
commit b84ad8a5bb

View file

@ -19,6 +19,7 @@ class LocationSearchService {
if (this.citiesPromise) {
return;
}
// TODO: Ensure the response is cached on the client
this.citiesPromise = fetch(CITIES_URL).then((response) => {
return response.json().then((data) => {
this.cities = data['data'];