From c45eed40afbc3e773e938311fc4a212bf6397ffd Mon Sep 17 00:00:00 2001 From: HyperBlaze <73149145+LightningHyperBlaze45654@users.noreply.github.com> Date: Fri, 6 Dec 2024 11:24:45 -0800 Subject: [PATCH] fix: currentChat not being updated --- src/ts/process/index.svelte.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ts/process/index.svelte.ts b/src/ts/process/index.svelte.ts index 37863e8a..b7b5578d 100644 --- a/src/ts/process/index.svelte.ts +++ b/src/ts/process/index.svelte.ts @@ -788,6 +788,8 @@ export async function sendChat(chatProcessIndex = -1,arg:{ currentTokens = sp.currentTokens currentChat.hypaV2Data = sp.memory ?? currentChat.hypaV2Data DBState.db.characters[selectedChar].chats[selectedChat].hypaV2Data = currentChat.hypaV2Data + + currentChat = DBState.db.characters[selectedChar].chats[selectedChat]; console.log("Current chat's HypaV2Data: ", currentChat.hypaV2Data) } else{