resetting botMessage to stop crashing
This commit is contained in:
parent
393999165b
commit
da0650d3b6
@ -443,13 +443,14 @@ async function generateResponse(conversation, message) {
|
||||
clearInterval(refreshInterval);
|
||||
console.log(responseText);
|
||||
botMessage.delete()
|
||||
|
||||
botMessage = null;
|
||||
return responseText;
|
||||
|
||||
} catch (err) {
|
||||
throw err;
|
||||
} finally {
|
||||
clearTimeout(timeout);
|
||||
botMessage = null;
|
||||
time = 0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user