Fixed members CSV uploader for non-devExperiments version

This commit is contained in:
Nazar Gargol 2020-07-13 20:30:32 +12:00
parent 21a5b2ad38
commit caf08b1021

View File

@ -209,6 +209,7 @@ export default ModalComponent.extend({
}, },
upload() { upload() {
if (this.config.get('enableDeveloperExperiments')) {
if (this.file && this.mapping.getKeyByValue('email')) { if (this.file && this.mapping.getKeyByValue('email')) {
this.generateRequest(); this.generateRequest();
} else { } else {
@ -217,6 +218,9 @@ export default ModalComponent.extend({
context: 'The CSV import has to have selected import as "Email" field.' context: 'The CSV import has to have selected import as "Email" field.'
}]); }]);
} }
} else {
this.generateRequest();
}
}, },
continueImport() { continueImport() {