Merge pull request #937 from wazuh/fix-if-switchtab

Fix if condition
This commit is contained in:
Jesús Ángel 2018-10-03 13:32:51 +02:00 committed by GitHub
commit c0997ac547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -299,9 +299,7 @@ class AgentsController {
!force;
this.$scope.tab = tab;
if (this.$scope.tab === 'configuration') {
this.firstLoad();
} else {
if (this.$scope.tab !== 'configuration') {
this.$scope.switchSubtab(
'panels',
true,