This commit is contained in:
Timothy Jaeryang Baek 2025-05-04 18:59:36 +04:00
parent 291834ecbe
commit 8514669053

View File

@ -2040,7 +2040,7 @@
{stopResponse} {stopResponse}
{createMessagePair} {createMessagePair}
onChange={(input) => { onChange={(input) => {
if (input.prompt) { if (input.prompt !== null) {
localStorage.setItem(`chat-input-${$chatId}`, JSON.stringify(input)); localStorage.setItem(`chat-input-${$chatId}`, JSON.stringify(input));
} else { } else {
localStorage.removeItem(`chat-input-${$chatId}`); localStorage.removeItem(`chat-input-${$chatId}`);