mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 18:05:20 +00:00
Go to agents-preview if the agent doesn't exist
This commit is contained in:
parent
2f700110aa
commit
3649868fb6
@ -560,6 +560,10 @@ export class AgentsController {
|
||||
return;
|
||||
} catch (error) {
|
||||
this.errorHandler.handle(error, 'Agents');
|
||||
if(error && typeof error === 'string' && error.includes('Agent does not exist')) {
|
||||
this.$location.search('agent',null)
|
||||
this.$location.path('/agents-preview')
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user