diff --git a/src/components/FileInput.tsx b/src/components/FileInput.tsx index 6d3d09c..0f1f3a4 100644 --- a/src/components/FileInput.tsx +++ b/src/components/FileInput.tsx @@ -33,18 +33,12 @@ export default class FileInput extends React.Component { formData.append('fileName', this.fileInput.current.files[0].name); HttpService.makeCallToBackend({ path: url, - successCallback: this.processSubmitResult, + successCallback: this.onUploadedCallback, httpMethod: 'POST', postBody: formData, }); } - processSubmitResult(_result: any) { - if (this.onUploadedCallback) { - this.onUploadedCallback(); - } - } - render() { return (