Skip to content

Commit e4732ff

Browse files
committed
fixes: render 2 maps when change status in editing view
1 parent 63780a8 commit e4732ff

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/helpers/gtt_map_helper.rb

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,6 @@ def map_tag(map: nil, layers: map&.layers,
7070
window.createGttClient(target);
7171
contentObserver();
7272
}, { once: true });
73-
var target = document.getElementById('#{uid}');
74-
if (
75-
document.readyState === 'complete'
76-
&& !target.hasChildNodes()
77-
) {
78-
window.createGttClient(target);
79-
}
8073
}
8174
document.addEventListener('DOMContentLoaded', function(){
8275
var target = document.getElementById('#{uid}');

0 commit comments

Comments
 (0)