aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/ReportController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-30 11:23:46 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-30 11:23:46 +0500
commit60fe1537206e2286423a7bc1ed5591b1f9c7a1d7 (patch)
tree0a1962ef178fa3c051c28e95b9a0101ed1d12e19 /web/app/view/ReportController.js
parentcffccb69b067fe0f838b0257d8cb48fa4e13ce2f (diff)
downloadtrackermap-web-60fe1537206e2286423a7bc1ed5591b1f9c7a1d7.tar.gz
trackermap-web-60fe1537206e2286423a7bc1ed5591b1f9c7a1d7.tar.bz2
trackermap-web-60fe1537206e2286423a7bc1ed5591b1f9c7a1d7.zip
Revert one check, remove another.
Diffstat (limited to 'web/app/view/ReportController.js')
-rw-r--r--web/app/view/ReportController.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index 50775ace..f8a01bc6 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -197,12 +197,10 @@ Ext.define('Traccar.view.ReportController', {
loadEvents: function (store, data) {
var i, eventObject, positionIds = [];
Ext.getStore('ReportRoute').removeAll();
- if (data.length > 0) {
- for (i = 0; i < data.length; i++) {
- eventObject = data[i];
- if (eventObject.get('positionId')) {
- positionIds.push(eventObject.get('positionId'));
- }
+ for (i = 0; i < data.length; i++) {
+ eventObject = data[i];
+ if (eventObject.get('positionId')) {
+ positionIds.push(eventObject.get('positionId'));
}
}
if (positionIds.length > 0) {