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);
|
clearInterval(refreshInterval);
|
||||||
console.log(responseText);
|
console.log(responseText);
|
||||||
botMessage.delete()
|
botMessage.delete()
|
||||||
|
botMessage = null;
|
||||||
return responseText;
|
return responseText;
|
||||||
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw err;
|
throw err;
|
||||||
} finally {
|
} finally {
|
||||||
clearTimeout(timeout);
|
clearTimeout(timeout);
|
||||||
|
botMessage = null;
|
||||||
time = 0
|
time = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user