情報が欠損している場合があるのでマージで対応
This commit is contained in:
parent
70b363f4c3
commit
c57e49516c
|
|
@ -139,7 +139,8 @@ export class NoteManager {
|
||||||
|
|
||||||
const cached = this.notesSource.get(note.id);
|
const cached = this.notesSource.get(note.id);
|
||||||
if (cached) {
|
if (cached) {
|
||||||
cached.value = note;
|
// 情報が欠損している場合があるのでマージで対応
|
||||||
|
cached.value = { ...cached.value, ...note };
|
||||||
if (this.isDebuggerEnabled) console.log('NoteManager: set note (update)', note.id, cached, note);
|
if (this.isDebuggerEnabled) console.log('NoteManager: set note (update)', note.id, cached, note);
|
||||||
} else {
|
} else {
|
||||||
this.notesSource.set(note.id, ref(note));
|
this.notesSource.set(note.id, ref(note));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue