mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 11:10:04 +00:00
fix(dbx): unwanted error swallow
This commit is contained in:
parent
1a6306b733
commit
82084cdf7b
2 changed files with 2 additions and 5 deletions
|
|
@ -303,9 +303,8 @@ export class PersistenceService {
|
|||
])
|
||||
.then(() => {
|
||||
this.updateLastLocalSyncModelChange(data.lastLocalSyncModelChange);
|
||||
this._isBlockSaving = false;
|
||||
})
|
||||
.catch(() => {
|
||||
.finally(() => {
|
||||
this._isBlockSaving = false;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue