Skip to content

Commit

Permalink
Fix busted types in new adapter.
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkambic committed Sep 4, 2019
1 parent 1bdc942 commit 6e31ccc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { InternalCoreStart, ChromeBreadcrumb } from 'src/core/public';
import { ChromeBreadcrumb, CoreStart } from 'src/core/public';
import React from 'react';
import ReactDOM from 'react-dom';
import { CreateGraphQLClient } from './framework_adapter_types';
Expand All @@ -16,7 +16,7 @@ import { renderUptimeKibanaGlobalHelp } from './kibana_global_help';
import { UMFrameworkAdapter, BootstrapUptimeApp } from '../../lib';
import { createApolloClient } from './apollo_client_adapter';

export const getKibanaFrameworkAdapter = (core: InternalCoreStart): UMFrameworkAdapter => {
export const getKibanaFrameworkAdapter = (core: CoreStart): UMFrameworkAdapter => {
const {
application: { capabilities },
chrome: { setBadge, setHelpExtension },
Expand All @@ -25,8 +25,8 @@ export const getKibanaFrameworkAdapter = (core: InternalCoreStart): UMFrameworkA
i18n,
} = core;
let breadcrumbs: ChromeBreadcrumb[] = [];
core.chrome.getBreadcrumbs$().subscribe(nextBreadcrumbs => {
breadcrumbs = nextBreadcrumbs;
core.chrome.getBreadcrumbs$().subscribe((nextBreadcrumbs?: ChromeBreadcrumb[]) => {
breadcrumbs = nextBreadcrumbs || [];
});
const { apm, infrastructure, logs } = getIntegratedAppAvailability(
capabilities,
Expand Down

0 comments on commit 6e31ccc

Please sign in to comment.