use existing queryparams prop in AppRootPage (#34464)

This commit is contained in:
Domas
2021-05-20 11:24:56 +03:00
committed by GitHub
parent 1d7595374a
commit f166b22b52

View File

@@ -10,8 +10,6 @@ import { getNotFoundNav, getWarningNav, getExceptionNav } from 'app/core/nav_mod
import { appEvents } from 'app/core/core';
import PageLoader from 'app/core/components/PageLoader/PageLoader';
import { GrafanaRouteComponentProps } from 'app/core/navigation/types';
import { locationSearchToObject } from '@grafana/runtime';
interface RouteParams {
pluginId: string;
}
@@ -107,7 +105,7 @@ class AppRootPage extends Component<Props, State> {
meta={plugin.meta}
basename={this.props.match.url}
onNavChanged={this.onNavChanged}
query={locationSearchToObject(this.props.location.search) as KeyValue}
query={this.props.queryParams as KeyValue}
path={this.props.location.pathname}
/>
)}