Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Mar 3, 2020
1 parent 2478010 commit dc68a58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions x-pack/legacy/plugins/maps/public/kibana_services.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ export const getInspector = () => {
return inspector;
};

let fileUpload;
export const setFileUpload = fileUploadPlugin => (fileUpload = fileUploadPlugin);
export const getFileUpload = () => {
return fileUpload.JsonUploadAndParse;
let fileUploadPlugin;
export const setFileUpload = fileUpload => (fileUploadPlugin = fileUpload);
export const getFileUploadComponent = () => {
return fileUploadPlugin.JsonUploadAndParse;
};

export async function fetchSearchSourceAndRecordWithInspector({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import React from 'react';
import { getFileUpload } from '../../../kibana_services';
import { getFileUploadComponent } from '../../../kibana_services';

export function ClientFileCreateSourceEditor({
previewGeojsonFile,
Expand All @@ -14,7 +14,7 @@ export function ClientFileCreateSourceEditor({
onRemove,
onIndexReady,
}) {
const FileUpload = getFileUpload();
const FileUpload = getFileUploadComponent();
return (
<FileUpload
appName={'Maps'}
Expand Down

0 comments on commit dc68a58

Please sign in to comment.