mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 15:07:02 +03:00
Cleanup more iError && data.Result
This commit is contained in:
parent
87bee226b4
commit
ce74b2e92f
19 changed files with 78 additions and 100 deletions
|
|
@ -605,7 +605,7 @@ class ComposePopupView extends AbstractViewPopup {
|
|||
|
||||
this.saving(false);
|
||||
|
||||
if (!iError && oData && oData.Result) {
|
||||
if (!iError) {
|
||||
if (oData.Result.NewFolder && oData.Result.NewUid) {
|
||||
result = true;
|
||||
|
||||
|
|
@ -1032,7 +1032,7 @@ class ComposePopupView extends AbstractViewPopup {
|
|||
const downloads = this.getAttachmentsDownloadsForUpload();
|
||||
if (isNonEmptyArray(downloads)) {
|
||||
Remote.messageUploadAttachments((iError, oData) => {
|
||||
if (!iError && oData && oData.Result) {
|
||||
if (!iError) {
|
||||
Object.entries(oData.Result).forEach(([tempName, id]) => {
|
||||
const attachment = this.getAttachmentById(id);
|
||||
if (attachment) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue