This commit is contained in:
parent
20e84838b9
commit
e51a041082
|
@ -365,12 +365,10 @@ export class NoteManager {
|
||||||
const note = (!this.notesSource.has(id) || shoudFetch) ? this.fetch(id) : this.get(id)!;
|
const note = (!this.notesSource.has(id) || shoudFetch) ? this.fetch(id) : this.get(id)!;
|
||||||
let using = false;
|
let using = false;
|
||||||
const CapturePromise = Promise.resolve(note)
|
const CapturePromise = Promise.resolve(note)
|
||||||
.then(() => {
|
|
||||||
this.capture(id);
|
|
||||||
using = true;
|
|
||||||
})
|
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
|
})
|
||||||
|
.finally(() => {
|
||||||
this.capture(id);
|
this.capture(id);
|
||||||
using = true;
|
using = true;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue