diff --git a/public/script.js b/public/script.js index 1d7318e7b..dc0e60862 100644 --- a/public/script.js +++ b/public/script.js @@ -5654,7 +5654,7 @@ async function getChat() { contentType: 'application/json', }); if (response[0] !== undefined) { - chat.push(...response); + chat.splice(0, chat.length, ...response); chat_create_date = chat[0]['create_date']; chat_metadata = chat[0]['chat_metadata'] ?? {};