Skip to content

Commit

Permalink
Fix config.get errors in functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme committed Jan 30, 2020
1 parent b31a688 commit c528e4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export interface DashboardAppScope extends ng.IScope {
export function initDashboardAppDirective(app: any, deps: RenderDeps) {
app.directive('dashboardApp', function($injector: IInjector) {
const confirmModal = $injector.get<ConfirmModalFn>('confirmModal');
const config = deps.uiSettings;

return {
restrict: 'E',
Expand All @@ -102,7 +101,6 @@ export function initDashboardAppDirective(app: any, deps: RenderDeps) {
$route,
$scope,
$routeParams,
config,
confirmModal,
indexPatterns: deps.npDataStart.indexPatterns,
...deps,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ export interface DashboardAppControllerDependencies extends RenderDeps {
$routeParams: any;
indexPatterns: IndexPatternsContract;
dashboardConfig: any;
config: any;
confirmModal: ConfirmModalFn;
}

Expand All @@ -102,7 +101,6 @@ export class DashboardAppController {
dashboardConfig,
localStorage,
indexPatterns,
config,
confirmModal,
savedQueryService,
embeddables,
Expand Down Expand Up @@ -369,7 +367,7 @@ export class DashboardAppController {
dashboardStateManager.getQuery() || {
query: '',
language:
localStorage.get('kibana.userQueryLanguage') || config.get('search:queryLanguage'),
localStorage.get('kibana.userQueryLanguage') || uiSettings.get('search:queryLanguage'),
},
queryFilter.getFilters()
);
Expand Down Expand Up @@ -486,7 +484,7 @@ export class DashboardAppController {
{
query: '',
language:
localStorage.get('kibana.userQueryLanguage') || config.get('search:queryLanguage'),
localStorage.get('kibana.userQueryLanguage') || uiSettings.get('search:queryLanguage'),
},
queryFilter.getGlobalFilters()
);
Expand Down

0 comments on commit c528e4a

Please sign in to comment.