mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 01:10:14 +01:00
fix: reset submission when convo clears
This commit is contained in:
parent
23de688bf3
commit
f1aabfa543
8 changed files with 13 additions and 3 deletions
|
|
@ -5,6 +5,7 @@ import manualSWR from '~/utils/fetchers';
|
|||
import { useDispatch } from 'react-redux';
|
||||
import { setNewConvo, removeConvo } from '~/store/convoSlice';
|
||||
import { setMessages } from '~/store/messageSlice';
|
||||
import { setSubmission } from '~/store/submitSlice';
|
||||
|
||||
export default function DeleteButton({ conversationId, renaming, cancelHandler }) {
|
||||
const dispatch = useDispatch();
|
||||
|
|
@ -15,6 +16,7 @@ export default function DeleteButton({ conversationId, renaming, cancelHandler }
|
|||
dispatch(setMessages([]));
|
||||
dispatch(removeConvo(conversationId));
|
||||
dispatch(setNewConvo());
|
||||
dispatch(setSubmission({}));
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue