From b64e51da50e4b3f56b1022cdd82e2ce57188a1b9 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Thu, 1 Dec 2016 17:49:16 +0500 Subject: Add check --- web/app/view/ReportController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3