File tree Expand file tree Collapse file tree 4 files changed +3
-14
lines changed
microfrontends/fn_dashboard Expand file tree Collapse file tree 4 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ export interface FnState {
1111 controlsContainer : string | null ;
1212 pageTitle : string ;
1313 queryParams : AnyObject ;
14- hiddenVariables : readonly string [ ] ;
14+ hiddenVariables : string [ ] ;
1515 metadata : {
1616 teams : string [ ] ;
1717 eventListener : ( < T > ( event : { type : string ; data : T } ) => void ) | null ;
Original file line number Diff line number Diff line change @@ -50,17 +50,7 @@ export const RenderFNDashboard: FC<FNDashboardProps> = (props) => {
5050 } , [ firstError , setErrors ] ) ;
5151
5252 useEffect ( ( ) => {
53- const params = new URLSearchParams ( window . location . search ) ;
54- const queryParamsInUrl = Object . fromEntries ( params . entries ( ) ) ;
55- mfeLocationService . fnPathnameChange ( window . location . pathname , {
56- ...( queryParamsInUrl [ 'from' ] && queryParamsInUrl [ 'to' ]
57- ? {
58- from : queryParamsInUrl [ 'from' ] ,
59- to : queryParamsInUrl [ 'to' ] ,
60- }
61- : { } ) ,
62- ...queryParams ,
63- } ) ;
53+ mfeLocationService . fnPathnameChange ( window . location . pathname , queryParams ) ;
6454 } , [ queryParams ] ) ;
6555
6656 const dashboardPageProps : DashboardPageProps = useMemo (
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ export interface FNDashboardProps extends FnState {
2121 fnError ?: ReactNode ;
2222 isLoading : ( isLoading : boolean ) => void ;
2323 setErrors : ( errors ?: { [ K : number | string ] : string } ) => void ;
24- hiddenVariables : readonly string [ ] ;
2524 container ?: HTMLElement | null ;
2625 mode : FnGlobalState [ 'mode' ] ;
2726}
Original file line number Diff line number Diff line change 1919
2020 < script nonce ="" src ="../../../public/build/runtime~fn_dashboard.551314fa089c5f51c211.js " type ="text/javascript "> </ script >
2121
22- < script nonce ="" src ="../../../public/build/fn_dashboard.3d2843b4e80cc008ca4a .js " type ="text/javascript "> </ script >
22+ < script nonce ="" src ="../../../public/build/fn_dashboard.52b8a11227d8b0dbf683 .js " type ="text/javascript "> </ script >
2323
2424 </ body >
2525</ html >
You can’t perform that action at this time.
0 commit comments