From f166b22b520ed4a51f621172969c60696e6e0c9b Mon Sep 17 00:00:00 2001 From: Domas Date: Thu, 20 May 2021 11:24:56 +0300 Subject: [PATCH] use existing queryparams prop in AppRootPage (#34464) --- public/app/features/plugins/AppRootPage.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/app/features/plugins/AppRootPage.tsx b/public/app/features/plugins/AppRootPage.tsx index be381da635f..a4243995557 100644 --- a/public/app/features/plugins/AppRootPage.tsx +++ b/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 { 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} /> )}