@@ -7,7 +7,7 @@ import { DashboardRoutes, StoreState, useSelector } from 'app/types';
7
7
8
8
import { FNDashboardProps } from '../types' ;
9
9
10
- const locationService = locationSrv as HistoryWrapper ;
10
+ export const mfeLocationService = locationSrv as HistoryWrapper ;
11
11
12
12
const DEFAULT_DASHBOARD_PAGE_PROPS : Pick < DashboardPageProps , 'history' | 'route' > & {
13
13
match : Pick < DashboardPageProps [ 'match' ] , 'isExact' | 'path' | 'url' > ;
@@ -17,7 +17,7 @@ const DEFAULT_DASHBOARD_PAGE_PROPS: Pick<DashboardPageProps, 'history' | 'route'
17
17
path : '/d/:uid/:slug?' ,
18
18
url : '' ,
19
19
} ,
20
- history : { } as DashboardPageProps [ 'history' ] ,
20
+ history : mfeLocationService . getHistory ( ) ,
21
21
route : {
22
22
routeName : DashboardRoutes . Normal ,
23
23
path : '/d/:uid/:slug?' ,
@@ -50,7 +50,7 @@ export const RenderFNDashboard: FC<FNDashboardProps> = (props) => {
50
50
} , [ firstError , setErrors ] ) ;
51
51
52
52
useEffect ( ( ) => {
53
- locationService . fnPathnameChange ( window . location . pathname , queryParams ) ;
53
+ mfeLocationService . fnPathnameChange ( window . location . pathname , queryParams ) ;
54
54
} , [ queryParams ] ) ;
55
55
56
56
const dashboardPageProps : DashboardPageProps = useMemo (
@@ -62,7 +62,7 @@ export const RenderFNDashboard: FC<FNDashboardProps> = (props) => {
62
62
...props ,
63
63
} ,
64
64
} ,
65
- location : locationService . getLocation ( ) ,
65
+ location : mfeLocationService . getLocation ( ) ,
66
66
queryParams,
67
67
hiddenVariables,
68
68
controlsContainer,
0 commit comments