mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 07:15:20 +00:00
refac
This commit is contained in:
parent
291834ecbe
commit
8514669053
1 changed files with 1 additions and 1 deletions
|
|
@ -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}`);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue