This commit is contained in:
tamaina 2023-07-30 10:40:04 +00:00
parent 25ae63f6cd
commit f6c2fae089
1 changed files with 6 additions and 9 deletions

View File

@ -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(() => {