Skip to content

Commit

Permalink
[BUGFIX] FE Error: Uncaught TypeError: item.getAttribute #522 (#573)
Browse files Browse the repository at this point in the history
Adjust the code that manages address data in the Frontend to code used in Leaflet.js.
Resolves issue #522.

Co-authored-by: Dr. Caroline Loebhard <[email protected]>
  • Loading branch information
oracline and oracline authored Aug 27, 2024
1 parent 07e0780 commit 1f8f25a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Resources/Public/JavaScript/Frontend/GoogleMaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ function ttAddressGoogleMaps() {

var bounds = new google.maps.LatLngBounds();

var records = document.getElementById("ttaddress__records");
for (var i = 0; i < records.childNodes.length; i++) {
var item = records.childNodes[i];
var records = document.getElementById("ttaddress__records").children;
for (var i = 0; i < records.length; i++) {
var item = records[i];

var marker = new google.maps.Marker({
map: obj.map,
Expand Down

0 comments on commit 1f8f25a

Please sign in to comment.