project-booster-vue 9.43.0 → 9.43.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -341,15 +341,20 @@ export default defineComponent({
|
|
|
341
341
|
selectedCity.geometry.location.lat(),
|
|
342
342
|
selectedCity.geometry.location.lng(),
|
|
343
343
|
);
|
|
344
|
+
|
|
344
345
|
const postalCode =
|
|
345
|
-
|
|
346
|
+
selectedCity.address_components.filter((field) => field.types.includes('postal_code'))[0]?.short_name ||
|
|
346
347
|
placeData.postalCode;
|
|
347
348
|
|
|
349
|
+
const region =
|
|
350
|
+
selectedCity.address_components.filter((field) => field.types.includes('administrative_area_level_1'))[0]
|
|
351
|
+
?.short_name || '';
|
|
352
|
+
|
|
348
353
|
this.selectedCity = {
|
|
349
354
|
inseeCode: placeData.inseeCode,
|
|
350
355
|
postalCode: postalCode,
|
|
351
356
|
name: placeData.name,
|
|
352
|
-
region:
|
|
357
|
+
region: region,
|
|
353
358
|
};
|
|
354
359
|
|
|
355
360
|
this.searchKeyword = this.selectedCityToKeyword();
|