aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--web/app/view/map/MapMarkerController.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/web/app/view/map/MapMarkerController.js b/web/app/view/map/MapMarkerController.js
index c7767dd8..2f1d91e1 100644
--- a/web/app/view/map/MapMarkerController.js
+++ b/web/app/view/map/MapMarkerController.js
@@ -377,9 +377,7 @@ Ext.define('Traccar.view.map.MapMarkerController', {
clearEvent: function () {
if (this.selectedMarker && this.selectedMarker.get('event')) {
- if (!Ext.getStore('EventPositions').getById(this.selectedMarker.get('record').getId())) {
- this.selectMarker(null, false);
- }
+ this.selectMarker(null, false);
}
},