Skip to content

Commit 2bf46c9

Browse files
type and query variable fix
1 parent 8d453fc commit 2bf46c9

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

public/app/core/reducers/fn-slice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

public/app/fn-app/fn-dashboard-page/render-fn-dashboard.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff 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(

public/app/fn-app/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

public/microfrontends/fn_dashboard/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
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>

0 commit comments

Comments
 (0)