diff options
Diffstat (limited to 'web/app')
-rw-r--r-- | web/app/view/ReportController.js | 2 |
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); } |