fix(dbx): unwanted error swallow

This commit is contained in:
Johannes Millan 2020-05-31 20:39:07 +02:00
parent 1a6306b733
commit 82084cdf7b
2 changed files with 2 additions and 5 deletions

View file

@ -303,9 +303,8 @@ export class PersistenceService {
])
.then(() => {
this.updateLastLocalSyncModelChange(data.lastLocalSyncModelChange);
this._isBlockSaving = false;
})
.catch(() => {
.finally(() => {
this._isBlockSaving = false;
});
}

View file

@ -21,9 +21,7 @@ export class SnackCustomComponent implements OnInit, OnDestroy {
ngOnInit() {
if (this.data.promise) {
this.data.promise.then(() => {
this.snackBarRef.dismiss();
}).catch(() => {
this.data.promise.finally(() => {
this.snackBarRef.dismiss();
});
}