soiz1 commited on
Commit
f7f6934
·
verified ·
1 Parent(s): 8501cb2

Update src/lib/sb-file-uploader-hoc.jsx

Browse files
Files changed (1) hide show
  1. src/lib/sb-file-uploader-hoc.jsx +1 -1
src/lib/sb-file-uploader-hoc.jsx CHANGED
@@ -141,7 +141,7 @@ const SBFileUploaderHOC = function (WrappedComponent) {
141
  // Don't update file handle until after confirming replace.
142
  const handle = thisFileInput.handle;
143
  if (handle) {
144
- if (this.fileToUpload.name.endsWith('.pm') || this.fileToUpload.name.endsWith('.pmp')) {
145
  this.props.onSetFileHandle(handle);
146
  } else {
147
  this.props.onSetFileHandle(null);
 
141
  // Don't update file handle until after confirming replace.
142
  const handle = thisFileInput.handle;
143
  if (handle) {
144
+ if (this.fileToUpload.name.endsWith('.txt') || this.fileToUpload.name.endsWith('.pm') || this.fileToUpload.name.endsWith('.pmp')) {
145
  this.props.onSetFileHandle(handle);
146
  } else {
147
  this.props.onSetFileHandle(null);