mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Safer filter
This commit is contained in:
parent
0033adf927
commit
4e36f54e19
@ -592,7 +592,7 @@ export class AgentsController {
|
||||
await this.$scope.switchTab(this.$scope.tab, true);
|
||||
|
||||
const groups = await this.apiReq.request('GET','/agents/groups',{});
|
||||
this.$scope.groups = groups.data.data.items.map(item => item.name).filter(item => !this.$scope.agent.group.includes(item));
|
||||
this.$scope.groups = groups.data.data.items.map(item => item.name).filter(item => this.$scope.agent.group && !this.$scope.agent.group.includes(item));
|
||||
|
||||
this.$scope.load = false;
|
||||
if (!this.$scope.$$phase) this.$scope.$digest();
|
||||
|
Loading…
Reference in New Issue
Block a user