diff options
Diffstat (limited to 'web/app/view/StateController.js')
-rw-r--r-- | web/app/view/StateController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/StateController.js b/web/app/view/StateController.js index 4c99a8be..23369b87 100644 --- a/web/app/view/StateController.js +++ b/web/app/view/StateController.js @@ -176,8 +176,8 @@ Ext.define('Traccar.view.StateController', { } }, - onSelectionChange: function (selected, records) { - var enabled = selected.getCount() > 0 && records[0].get('priority') === 1024; + onSelectionChange: function (selection, selected) { + var enabled = selected.length > 0 && selected[0].get('priority') === 1024; this.lookupReference('aliasEditButton').setDisabled(!enabled); }, |