Skip to content

Commit

Permalink
Set initial dashboard state
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jul 23, 2020
1 parent 3dc3bee commit 9256ae7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ import {
AngularHttpError,
KibanaLegacyStart,
subscribeWithScope,
migrateLegacyQuery,
} from '../../../kibana_legacy/public';

export interface DashboardAppControllerDependencies extends RenderDeps {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9256ae7

Please sign in to comment.