UI: Refactoring
This commit is contained in:
parent
409ae412fc
commit
a31e68cdc4
@ -192,11 +192,10 @@ export class FileInputComponent extends PageComponent implements AfterViewInit,
|
|||||||
if (!this.workFromFileObj) {
|
if (!this.workFromFileObj) {
|
||||||
fileContent = reader.result;
|
fileContent = reader.result;
|
||||||
if (fileContent && fileContent.length > 0) {
|
if (fileContent && fileContent.length > 0) {
|
||||||
if (this.contentConvertFunction) {
|
if (this.contentConvertFunction) {
|
||||||
fileContent = this.contentConvertFunction(fileContent);
|
fileContent = this.contentConvertFunction(fileContent);
|
||||||
}
|
}
|
||||||
fileName = file.name;
|
fileName = fileContent ? file.name : null;
|
||||||
files = file.file;
|
|
||||||
}
|
}
|
||||||
} else if (file.name || file.file){
|
} else if (file.name || file.file){
|
||||||
files = file.file;
|
files = file.file;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user