Explorar el Código

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

Maxi Schvindt hace 7 años
padre
commit
9babeeb4db
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {