From c57e49516cab7f0c7821bc2dc9a4b71ab99c2220 Mon Sep 17 00:00:00 2001 From: tamaina Date: Tue, 8 Aug 2023 02:59:08 +0000 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E5=A0=B1=E3=81=8C=E6=AC=A0=E6=90=8D?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=84=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=8C?= =?UTF-8?q?=E3=81=82=E3=82=8B=E3=81=AE=E3=81=A7=E3=83=9E=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=81=A7=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/scripts/entity-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index e32ba3ee6e..6b4383bb77 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -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));