diff --git a/x-pack/legacy/plugins/file_upload/public/components/json_upload_and_parse.js b/x-pack/legacy/plugins/file_upload/public/components/json_upload_and_parse.js index 773d57ff8df9e..f761899719d64 100644 --- a/x-pack/legacy/plugins/file_upload/public/components/json_upload_and_parse.js +++ b/x-pack/legacy/plugins/file_upload/public/components/json_upload_and_parse.js @@ -16,7 +16,6 @@ import { IndexSettings } from './index_settings'; import { JsonIndexFilePicker } from './json_index_file_picker'; import { JsonImportProgress } from './json_import_progress'; import _ from 'lodash'; -import { initServicesAndConstants } from '../kibana_services'; const INDEXING_STAGE = { INDEXING_STARTED: i18n.translate( @@ -66,11 +65,6 @@ export class JsonUploadAndParse extends Component { indexPatternResp: '', }; - constructor(props) { - super(props); - initServicesAndConstants(props); - } - componentDidMount() { this._isMounted = true; } diff --git a/x-pack/legacy/plugins/file_upload/public/plugin.ts b/x-pack/legacy/plugins/file_upload/public/plugin.ts index 9cb406bbe3474..cc9ebbfc15b39 100644 --- a/x-pack/legacy/plugins/file_upload/public/plugin.ts +++ b/x-pack/legacy/plugins/file_upload/public/plugin.ts @@ -9,6 +9,8 @@ import { Plugin, CoreStart } from 'src/core/public'; import { initResources } from './util/indexing_service'; // @ts-ignore import { JsonUploadAndParse } from './components/json_upload_and_parse'; +// @ts-ignore +import { initServicesAndConstants } from './kibana_services'; /** * These are the interfaces with your public contracts. You should export these @@ -23,12 +25,7 @@ export class FileUploadPlugin implements Plugin