[ML] Fixing single to multi metric wizard redirect (#152547)

Typo in redirect path introduced in [this
PR](https://github.com/elastic/kibana/pull/149590)
This commit is contained in:
James Gowdy 2023-03-02 15:10:46 +00:00 committed by GitHub
parent daaa7ea1ea
commit 446f04d7b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -127,14 +127,13 @@ export const multiMetricRouteFactory = (
// redirect route to reset the job wizard when converting to multi metric job
export const multiMetricRouteFactoryRedirect = (): MlRoute => ({
path: createPath(ML_PAGES.ANOMALY_DETECTION_CREATE_JOB_CONVERT_TO_MULTI_METRIC),
render: (props) => (
<Redirect
to={createPath(
ML_PAGES.ANOMALY_DETECTION_CREATE_JOB_CONVERT_TO_MULTI_METRIC,
props.location.search
)}
/>
),
render: (props) => {
return (
<Redirect
to={createPath(ML_PAGES.ANOMALY_DETECTION_CREATE_JOB_MULTI_METRIC, props.location.search)}
/>
);
},
breadcrumbs: [],
});