Improved www.ttss.krakow.pl
Jacek Kowalski
2017-05-03 eec54b3920b2974922a103b4bb4d5246f4cdefe8
Fix JS error during vehicle removal when no feature is selected
1 files modified
2 ■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
map.js
@@ -209,7 +209,7 @@
            if(vehicle.isDeleted) {
                if(vehicle_feature) {
                    vehicles_source.removeFeature(vehicle_feature);
                    if(feature_clicked.getId() == vehicle_feature.getId()) {
                    if(feature_clicked && feature_clicked.getId() == vehicle_feature.getId()) {
                        featureClicked();
                    }
                }