use existing queryparams prop in AppRootPage (#34464)

pull/34467/head
Domas 4 years ago committed by GitHub
parent 1d7595374a
commit f166b22b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      public/app/features/plugins/AppRootPage.tsx

@ -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}
/>
)}

Loading…
Cancel
Save