Skip to content

Commit

Permalink
Merge pull request #328 from gtt-project/dev-fix-regression-269
Browse files Browse the repository at this point in the history
fixes: render 2 maps when change status in editing view
  • Loading branch information
smellman authored Jul 25, 2024
2 parents 63780a8 + fc4166e commit 648dc9a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions app/helpers/gtt_map_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ def map_tag(map: nil, layers: map&.layers,
observer.observe(document.body, config);
}
if (!#{show}) {
document.addEventListener('contentUpdated', function(){
var target = document.getElementById('#{uid}');
window.createGttClient(target);
contentObserver();
}, { once: true });
var target = document.getElementById('#{uid}');
if (
document.readyState === 'complete'
Expand Down

0 comments on commit 648dc9a

Please sign in to comment.