This commit is contained in:
tamaina 2023-07-31 10:33:13 +00:00
parent 20e84838b9
commit e51a041082
1 changed files with 2 additions and 4 deletions

View File

@ -365,12 +365,10 @@ export class NoteManager {
const note = (!this.notesSource.has(id) || shoudFetch) ? this.fetch(id) : this.get(id)!;
let using = false;
const CapturePromise = Promise.resolve(note)
.then(() => {
this.capture(id);
using = true;
})
.catch(err => {
console.error(err);
})
.finally(() => {
this.capture(id);
using = true;
});