mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Call getClusterInfo instead getting from scope
This commit is contained in:
parent
642d1b3650
commit
c7ccf4e47c
@ -65,7 +65,7 @@ app.controller('agentsPreviewController', function ($scope,$rootScope, Notifier,
|
||||
|
||||
// tmpUrl y tmpUrl2
|
||||
if (data[2].data.data === '') {
|
||||
$scope.mostActiveAgent.name = $scope.cluster_info.manager;
|
||||
$scope.mostActiveAgent.name = appState.getClusterInfo().manager;
|
||||
$scope.mostActiveAgent.id = '000';
|
||||
} else {
|
||||
$scope.mostActiveAgent.name = data[2].data.data;
|
||||
|
Loading…
Reference in New Issue
Block a user