From 9256ae77edf1cf081e092a9317ac546e51d10ee4 Mon Sep 17 00:00:00 2001 From: Liza K Date: Thu, 23 Jul 2020 22:30:18 +0300 Subject: [PATCH] Set initial dashboard state --- .../dashboard/public/application/dashboard_app_controller.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/dashboard/public/application/dashboard_app_controller.tsx b/src/plugins/dashboard/public/application/dashboard_app_controller.tsx index c2b57ab97cee4..8987e190834d1 100644 --- a/src/plugins/dashboard/public/application/dashboard_app_controller.tsx +++ b/src/plugins/dashboard/public/application/dashboard_app_controller.tsx @@ -79,6 +79,7 @@ import { AngularHttpError, KibanaLegacyStart, subscribeWithScope, + migrateLegacyQuery, } from '../../../kibana_legacy/public'; export interface DashboardAppControllerDependencies extends RenderDeps { @@ -179,6 +180,8 @@ export class DashboardAppController { // sync initial app filters from state to filterManager // if there is an existing similar global filter, then leave it as global filterManager.setAppFilters(_.cloneDeep(dashboardStateManager.appState.filters)); + queryStringManager.setQuery(migrateLegacyQuery(dashboardStateManager.appState.query)); + // setup syncing of app filters between appState and filterManager const stopSyncingAppFilters = connectToQueryState( queryService,