aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-12-01 17:49:16 +0500
committerAbyss777 <abyss@fox5.ru>2016-12-01 17:49:16 +0500
commitb64e51da50e4b3f56b1022cdd82e2ce57188a1b9 (patch)
treef5095a01482f1dda21476d20512e6acb98130e09 /web/app/view/ReportController.js
parent5433c47155452951b8c75587725bf6c92f8ff11d (diff)
downloadtrackermap-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.tar.gz
trackermap-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.tar.bz2
trackermap-web-b64e51da50e4b3f56b1022cdd82e2ce57188a1b9.zip
Add check
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r--web/app/view/ReportController.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 97407e23..2ad2bdda 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -214,7 +214,7 @@ Ext.define('Traccar.view.ReportController', {
callback: function (records, operation, success) {
if (success) {
Ext.getStore('ReportRoute').add(records);
- if (this.singleEvent) {
+ if (this.singleEvent && records.length > 0) {
this.singleEvent = false;
this.fireEvent('selectreport', records[0], false);
}