Browse Source

Se corrige error javascript que tiraba por acceder a elementos que no existían.

Maxi Schvindt 7 năm trước cách đây
mục cha
commit
9babeeb4db
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Resources/views/Leaflet/map.html.twig

+ 1 - 1
Resources/views/Leaflet/map.html.twig

@@ -44,7 +44,7 @@
                     setting: "location"
                 }
             }).done(function (data) {
-                if (data.result) {
+                if (data.result && data.config != null) {
                     _MAP_LATITUDE = data.config.latitude;
                     _MAP_LONGITUDE = data.config.longitude;
                     if (drawMapNow) {