From 588679f4bc1dd5532b75f749efc5b6dc37446ebd Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 11 Aug 2023 15:12:27 +0000 Subject: [PATCH] :v: --- packages/frontend/src/scripts/entity-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index ffa1b9d8f3..21ce3b4a59 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -107,10 +107,10 @@ export class NoteManager { } public set(_note: Note): void { - if (this.updatedAt.has(_note.id) && this.notesSource.value.has(_note.id)) { + if (this.updatedAt.has(_note.id)) { if (this.updatedAt.get(_note.id)! + 100 > Date.now()) { if (this.isDebuggerEnabled) console.log('NoteManager: set ignore', _note.id); - // 100ms以内に更新されたノートは無視 + // 100ms以内に更新されたノートは無視(computedが壊れるので) return; } }