diff --git a/packages/frontend/src/scripts/entity-manager.ts b/packages/frontend/src/scripts/entity-manager.ts index 4ff961276b..a7d25bbd1a 100644 --- a/packages/frontend/src/scripts/entity-manager.ts +++ b/packages/frontend/src/scripts/entity-manager.ts @@ -185,13 +185,12 @@ export class NoteManager { const files = note.fileIds.map(id => driveFileManager.get(id)?.value); - const result = { - ...note, + const result = Object.assign({}, note, { user: user.value, renote: renote?.value ?? undefined, reply: reply?.value ?? undefined, files: files.filter(file => file) as DriveFile[], - }; + }); if (this.isDebuggerEnabled) console.log('NoteManager: compute note: not null', id, result);