refac
This commit is contained in:
@@ -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}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user