情報が欠損している場合があるのでマージで対応

This commit is contained in:
tamaina 2023-08-08 02:59:08 +00:00
parent 70b363f4c3
commit c57e49516c
1 changed files with 2 additions and 1 deletions

View File

@ -139,7 +139,8 @@ export class NoteManager {
const cached = this.notesSource.get(note.id);
if (cached) {
cached.value = note;
// 情報が欠損している場合があるのでマージで対応
cached.value = { ...cached.value, ...note };
if (this.isDebuggerEnabled) console.log('NoteManager: set note (update)', note.id, cached, note);
} else {
this.notesSource.set(note.id, ref(note));