mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 08:12:00 +02:00
🛠️ fix: Improve SSE Handling and Fix Typo in sendEmail
Template (#1245)
* fix: typo for passwordReset.handlebars * fix(useSSE): prevent unnecessary JSON.parse abort error, handle immediate abort-submit gracefully by reverting to previous state before immediate abort-submit, add showStopButton state to explicitly render disabled sendButton when message generation is cancelled, filter undefined messages and replace undefined convo for cancelHandler
This commit is contained in:
parent
e13b146d6d
commit
166a4fa44f
6 changed files with 33 additions and 17 deletions
|
@ -8,7 +8,7 @@ async function abortMessage(req, res) {
|
|||
const { abortKey } = req.body;
|
||||
|
||||
if (!abortControllers.has(abortKey) && !res.headersSent) {
|
||||
return res.status(404).send('Request not found');
|
||||
return res.status(404).send({ message: 'Request not found' });
|
||||
}
|
||||
|
||||
const { abortController } = abortControllers.get(abortKey);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue