Skip to content

Commit c594bb5

Browse files
CyperghostTimWolla
andauthored
Fix storing the Geocoding results (#5664)
This was broken due to a typo in the name of the data-* attribute (`googleMapsGeocdingStore`). Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
1 parent 8a107fc commit c594bb5

File tree

2 files changed

+6
-4
lines changed
  • ts/WoltLabSuite/Core/Component/GoogleMaps
  • wcfsetup/install/files/js/WoltLabSuite/Core/Component/GoogleMaps

2 files changed

+6
-4
lines changed

ts/WoltLabSuite/Core/Component/GoogleMaps/Geocoding.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ class Geocoding {
115115
this.#element.dataset.googleMapsLat = lat.toString();
116116
this.#element.dataset.googleMapsLng = lng.toString();
117117

118-
if (this.#element.hasAttribute("data-google-maps-geocoding-store") && this.#element.form) {
119-
this.#store(this.#element.dataset.googleMapsGeocdingStore || "", lat, lng);
118+
const prefix = this.#element.dataset.googleMapsGeocodingStore;
119+
if (prefix != null && this.#element.form) {
120+
this.#store(prefix, lat, lng);
120121
}
121122
}
122123

wcfsetup/install/files/js/WoltLabSuite/Core/Component/GoogleMaps/Geocoding.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)