This commit is contained in:
tamaina 2023-07-28 07:56:49 +00:00
parent 8ad49637c5
commit 796b4ebc0f
2 changed files with 3 additions and 2 deletions

View File

@ -189,6 +189,7 @@ watch(cachedNote, async () => {
overridingNote.value = {}; overridingNote.value = {};
return; return;
} }
isDeleted.value = false;
if (noteViewInterruptors.length > 0) { if (noteViewInterruptors.length > 0) {
overridingNote.value = {}; overridingNote.value = {};
return; return;

View File

@ -103,10 +103,10 @@ export class NoteManager {
public get(id: string): CachedNote { public get(id: string): CachedNote {
if (!this.notesComputed.has(id)) { if (!this.notesComputed.has(id)) {
const note = this.notesSource.get(id); const note = this.notesSource.get(id) ?? this.notesSource.set(id, ref(null)).get(id)!;
this.notesComputed.set(id, computed<Note | null>(() => { this.notesComputed.set(id, computed<Note | null>(() => {
if (!note || !note.value) return null; if (!note.value) return null;
const user = userLiteManager.get(note.value.userId)!; const user = userLiteManager.get(note.value.userId)!;