Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Oct 22, 2020
1 parent 85d8850 commit f10dc0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ export const boot = (bootDeps: BootDeps) => {
</I18nContext>,
element
);
return () => unmountComponentAtNode(element);
return () => {
unmountComponentAtNode(element);
};
};
4 changes: 3 additions & 1 deletion x-pack/plugins/triggers_actions_ui/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
ManagementAppMountParams,
ManagementSetup,
} from '../../../../src/plugins/management/public';
import { boot } from './application/boot';
import { ChartsPluginStart } from '../../../../src/plugins/charts/public';
import { PluginStartContract as AlertingStart } from '../../alerts/public';
import { DataPublicPluginStart } from '../../../../src/plugins/data/public';
Expand Down Expand Up @@ -86,6 +85,9 @@ export class Plugin
PluginsStart,
unknown
];

const { boot } = await import('./application/boot');

return boot({
dataPlugin: pluginsStart.data,
charts: pluginsStart.charts,
Expand Down

0 comments on commit f10dc0a

Please sign in to comment.