change lock logic
This commit is contained in:
parent
4c287b54ce
commit
c3499db353
1 changed files with 1 additions and 1 deletions
|
|
@ -57,6 +57,7 @@ export default function ChatModal({
|
|||
};
|
||||
newWs.onmessage = (event) => {
|
||||
try {
|
||||
setLockChat(false);
|
||||
const data = JSON.parse(event.data);
|
||||
console.log("Received data:", data);
|
||||
//get chat history
|
||||
|
|
@ -105,7 +106,6 @@ export default function ChatModal({
|
|||
} else {
|
||||
addChatHistory(data.message, false, data.intermediate_steps);
|
||||
}
|
||||
setLockChat(false);
|
||||
}
|
||||
if (data.type == "file") {
|
||||
console.log(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue