소스 검색

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

Maxi Schvindt 7 년 전
부모
커밋
9babeeb4db
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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) {