Skip to content

Commit

Permalink
[Maps][File upload] Use correctly formatted pipeline with no processo…
Browse files Browse the repository at this point in the history
…rs for geojson upload (#94145)
  • Loading branch information
Aaron Caldwell authored Mar 9, 2021
1 parent 394593a commit 4eff7a0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { ES_FIELD_TYPES } from '../../../../../src/plugins/data/public';
import { FileUploadComponentProps } from '../lazy_load_bundle';
import { ImportResults } from '../importer';
import { GeoJsonImporter } from '../importer/geojson_importer';
import { IngestPipeline, Settings } from '../../common';
import { Settings } from '../../common';

enum PHASE {
CONFIGURE = 'CONFIGURE',
Expand Down Expand Up @@ -87,7 +87,10 @@ export class JsonUploadAndParse extends Component<FileUploadComponentProps, Stat
},
},
};
const ingestPipeline = ({} as unknown) as IngestPipeline;
const ingestPipeline = {
description: '',
processors: [],
};
this.setState({
importStatus: i18n.translate('xpack.fileUpload.jsonUploadAndParse.dataIndexingStarted', {
defaultMessage: 'Creating index: {indexName}',
Expand Down

0 comments on commit 4eff7a0

Please sign in to comment.