Improved www.ttss.krakow.pl
Jacek Kowalski
2018-06-03 fc8d60517033c7de6115d9d56bb43a8a7b279a3f
Merge pull request #13 from ravkr/master

Fix error when feature_clicked is null
1 files modified
2 ■■■ changed files
map.js 2 ●●● patch | view | raw | blame | history
map.js
@@ -170,7 +170,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();
                    }
                }