fix?
This commit is contained in:
parent
25ae63f6cd
commit
f6c2fae089
|
@ -235,14 +235,7 @@ export class NoteManager {
|
||||||
return this.get(id)!;
|
return this.get(id)!;
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
// エラーが発生した場合はとりあえず削除されたものとして扱う
|
// エラーが発生した場合は何もしない
|
||||||
const cached = this.notesSource.get(id);
|
|
||||||
if (cached) {
|
|
||||||
cached.value = null;
|
|
||||||
} else {
|
|
||||||
this.notesSource.set(id, ref(null));
|
|
||||||
}
|
|
||||||
// updateAtはしない
|
|
||||||
return this.get(id)!;
|
return this.get(id)!;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -370,7 +363,11 @@ export class NoteManager {
|
||||||
this.capture(id);
|
this.capture(id);
|
||||||
using = true;
|
using = true;
|
||||||
})
|
})
|
||||||
.catch(err => console.error(err));
|
.catch(err => {
|
||||||
|
console.error(err);
|
||||||
|
this.capture(id);
|
||||||
|
using = true;
|
||||||
|
});
|
||||||
|
|
||||||
const unuse = () => {
|
const unuse = () => {
|
||||||
CapturePromise.then(() => {
|
CapturePromise.then(() => {
|
||||||
|
|
Loading…
Reference in New Issue