From eff1dabe4156a70d94616fb0ee8eb6dd8a405c1c Mon Sep 17 00:00:00 2001 From: SillyLossy Date: Tue, 30 May 2023 02:00:23 +0300 Subject: [PATCH] Save chat before exporting --- public/script.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/script.js b/public/script.js index 6ba1ebf89..024b88ccf 100644 --- a/public/script.js +++ b/public/script.js @@ -5864,6 +5864,7 @@ $(document).ready(function () { }); $(document).on("click", ".exportChatButton", async function () { + await saveChatConditional(); const filenamefull = $(this).closest('.select_chat_block_wrapper').find('.select_chat_block_filename').text(); const filename = filenamefull.replace('.jsonl', ''); const body = {