Skip to content

Commit

Permalink
Prevent endless loop
Browse files Browse the repository at this point in the history
  • Loading branch information
basgroot committed Sep 29, 2023
1 parent aeda707 commit f5f3aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map.js
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ function initMap() {
} else if (publication.location === undefined) {
console.error("Publication without position: " + JSON.stringify(publication, null, 4));
// Take the center of the municipality:
position = findUniquePosition(municipalities[appState.activeMunicipality].center);
position = findUniquePosition(Object.assign({}, municipalities[appState.activeMunicipality].center));
prepareToAddMarker(publication, periodFilter.periodToShow, position, bounds);
} else {
console.error("Unsupported publication location: " + JSON.stringify(publication, null, 4));
Expand Down

0 comments on commit f5f3aed

Please sign in to comment.