From 450c3c4fb92a3d19fd5c2ae459ff2302d5ceeee4 Mon Sep 17 00:00:00 2001 From: prathercc Date: Mon, 25 Dec 2023 12:03:07 -0800 Subject: [PATCH] Prevent message content overwriting during JSON export --- src/features/export/exportSlice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/export/exportSlice.js b/src/features/export/exportSlice.js index 90c11afe..50a81503 100644 --- a/src/features/export/exportSlice.js +++ b/src/features/export/exportSlice.js @@ -668,7 +668,7 @@ const _exportJson = ); }); } - return Object.assign(message, { content }); + return Object.assign(message.getSafeCopy(), { content }); }) ), ],