mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
Use correct environment in anomaly detection setup link (#91877)
This was still using `uiFilters.environment` instead of environment, so the warning would never show.
This commit is contained in:
parent
a82b13d147
commit
863a2d06a4
1 changed files with 3 additions and 2 deletions
|
@ -30,8 +30,9 @@ export type AnomalyDetectionApiResponse = APIReturnType<'GET /api/apm/settings/a
|
|||
const DEFAULT_DATA = { jobs: [], hasLegacyJobs: false };
|
||||
|
||||
export function AnomalyDetectionSetupLink() {
|
||||
const { uiFilters } = useUrlParams();
|
||||
const environment = uiFilters.environment;
|
||||
const {
|
||||
urlParams: { environment },
|
||||
} = useUrlParams();
|
||||
const { core } = useApmPluginContext();
|
||||
const canGetJobs = !!core.application.capabilities.ml?.canGetJobs;
|
||||
const license = useLicenseContext();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue