aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
Diffstat (limited to 'web/app')
-rw-r--r--web/app/controller/Root.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 27455b39..5b0c8817 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -125,9 +125,9 @@ Ext.define('Traccar.controller.Root', {
Ext.create('widget.mainMobile');
} else {
main = Ext.create('widget.main');
- if (Traccar.app.getAttributePreference('web.disableReport', false)) {
+ if (Traccar.app.getAttributePreference('web.disableReport', false).toString() === 'true') {
for (i = 0; i < main.items.length; i++) {
- if (main.items.items[i].xtype === 'reportView') {
+ if (main.items.items[i].isXType('reportView')) {
main.items.items[i].hide();
break;
}