mirror of https://github.com/status-im/codimd.git
Reorganize usage of `getAsFile()`
Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
This commit is contained in:
parent
41bf7cc52f
commit
6219962892
|
@ -370,8 +370,11 @@
|
|||
if (this.isFileAllowed(item)) {
|
||||
result = true;
|
||||
var id = ID();
|
||||
this.onFileInserted(item.getAsFile(), id);
|
||||
this.uploadFile(item.getAsFile(), id);
|
||||
var file = item.getAsFile();
|
||||
if (file !== null) {
|
||||
this.onFileInserted(file, id);
|
||||
this.uploadFile(file, id);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue