Skip to content

Commit 5412b39

Browse files
committed
[ML] Don't pass empty strings to useResolver.
1 parent 67564b9 commit 5412b39

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/analytics_job_exploration.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const analyticsJobExplorationRouteFactory = (
3838
});
3939

4040
const PageWrapper: FC<PageProps> = ({ location, deps }) => {
41-
const { context } = useResolver('', undefined, deps.config, basicResolvers(deps));
41+
const { context } = useResolver(undefined, undefined, deps.config, basicResolvers(deps));
4242

4343
const [globalState] = useUrlState('_g');
4444

x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/analytics_jobs_list.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const analyticsJobsListRouteFactory = (
3434
});
3535

3636
const PageWrapper: FC<PageProps> = ({ location, deps }) => {
37-
const { context } = useResolver('', undefined, deps.config, basicResolvers(deps));
37+
const { context } = useResolver(undefined, undefined, deps.config, basicResolvers(deps));
3838
return (
3939
<PageLoader context={context}>
4040
<Page />

x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/analytics_map.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const analyticsMapRouteFactory = (
3434
});
3535

3636
const PageWrapper: FC<PageProps> = ({ deps }) => {
37-
const { context } = useResolver('', undefined, deps.config, basicResolvers(deps));
37+
const { context } = useResolver(undefined, undefined, deps.config, basicResolvers(deps));
3838

3939
return (
4040
<PageLoader context={context}>

x-pack/plugins/ml/public/application/routing/routes/data_frame_analytics/models_list.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const modelsListRouteFactory = (
3434
});
3535

3636
const PageWrapper: FC<PageProps> = ({ location, deps }) => {
37-
const { context } = useResolver('', undefined, deps.config, basicResolvers(deps));
37+
const { context } = useResolver(undefined, undefined, deps.config, basicResolvers(deps));
3838
return (
3939
<PageLoader context={context}>
4040
<Page />

x-pack/plugins/ml/public/application/routing/routes/datavisualizer/file_based.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const fileBasedRouteFactory = (
4545
const PageWrapper: FC<PageProps> = ({ location, deps }) => {
4646
const { redirectToMlAccessDeniedPage } = deps;
4747

48-
const { context } = useResolver('', undefined, deps.config, {
48+
const { context } = useResolver(undefined, undefined, deps.config, {
4949
checkBasicLicense,
5050
loadIndexPatterns: () => loadIndexPatterns(deps.indexPatterns),
5151
checkFindFileStructurePrivilege: () =>

x-pack/plugins/ml/public/application/routing/routes/timeseriesexplorer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const timeSeriesExplorerRouteFactory = (
6363
});
6464

6565
const PageWrapper: FC<PageProps> = ({ deps }) => {
66-
const { context, results } = useResolver('', undefined, deps.config, {
66+
const { context, results } = useResolver(undefined, undefined, deps.config, {
6767
...basicResolvers(deps),
6868
jobs: mlJobService.loadJobsWrapper,
6969
jobsWithTimeRange: () => ml.jobs.jobsWithTimerange(getDateFormatTz()),

0 commit comments

Comments
 (0)