fix
This commit is contained in:
parent
8ad49637c5
commit
796b4ebc0f
|
@ -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;
|
||||||
|
|
|
@ -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)!;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue