This commit is contained in:
tamaina 2023-08-09 03:56:43 +00:00
parent de956d8dee
commit 67c4b7895e
1 changed files with 1 additions and 3 deletions

View File

@ -195,7 +195,7 @@ export class NoteManager {
} else {
if (this.isDebuggerEnabled) console.log('NoteManager: get note (cached)', id, this.notesComputed.get(id), this.notesSource.get(id)?.value);
}
return computed(() => this.notesComputed.get(id)?.value ?? null);
return this.notesComputed.get(id)!;
}
/**
@ -314,7 +314,6 @@ export class NoteManager {
if (this.isDebuggerEnabled) console.log('NoteManager: onStreamNoteUpdated (not found)', id, note?.value);
this.connection?.send('un', { id });
this.captureing.delete(id);
this.notesComputed.delete(id);
this.updatedAt.delete(id);
return;
} else {
@ -384,7 +383,6 @@ export class NoteManager {
note.value = null;
this.connection?.send('un', { id });
this.captureing.delete(id);
this.notesComputed.delete(id);
this.updatedAt.delete(id);
break;
}