Spaces:
Running
Running
Update src/lib/sb-file-uploader-hoc.jsx
Browse files
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);
|