(js) Cleanup of "catch" for promises
This commit is contained in:
parent
aedb66f972
commit
9dd5dc4c47
|
@ -265,8 +265,6 @@
|
||||||
// Refresh list instance
|
// Refresh list instance
|
||||||
srcAddressBook.init(vm.addressbook.$omit());
|
srcAddressBook.init(vm.addressbook.$omit());
|
||||||
$mdDialog.hide();
|
$mdDialog.hide();
|
||||||
}, function() {
|
|
||||||
// TODO handle error
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -461,8 +461,6 @@
|
||||||
_this.editable.attachmentAttrs = _.filter(_this.editable.attachmentAttrs, function(attachment) {
|
_this.editable.attachmentAttrs = _.filter(_this.editable.attachmentAttrs, function(attachment) {
|
||||||
return attachment.filename != filename;
|
return attachment.filename != filename;
|
||||||
});
|
});
|
||||||
}, function() {
|
|
||||||
// TODO: show toast
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue