fix
This commit is contained in:
parent
a2c130a484
commit
e00acb5dc1
|
@ -431,14 +431,14 @@ export class NoteManager {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
console.log('NoteManager: useNote: CapturePromise.finally 1', id);
|
if (this.isDebuggerEnabled) console.log('NoteManager: useNote: CapturePromise.finally 1', id);
|
||||||
this.capture(id);
|
this.capture(id);
|
||||||
using = true;
|
using = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
const unuse = (noDeletion = false) => {
|
const unuse = (noDeletion = false) => {
|
||||||
CapturePromise.finally(() => {
|
CapturePromise.finally(() => {
|
||||||
console.log('NoteManager: useNote: unuse', id, { using, noDeletion });
|
if (this.isDebuggerEnabled) console.log('NoteManager: useNote: unuse', id, { using, noDeletion });
|
||||||
if (!using) return;
|
if (!using) return;
|
||||||
this.decapture(id, noDeletion);
|
this.decapture(id, noDeletion);
|
||||||
using = false;
|
using = false;
|
||||||
|
|
Loading…
Reference in New Issue