mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-18 09:20:15 +01:00
fix: failsafe to prevent all convos clearing from delete button
This commit is contained in:
parent
0fbbe74479
commit
4564b648f7
2 changed files with 8 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ export default function DeleteButton({ conversationId, renaming, cancelHandler,
|
|||
}
|
||||
);
|
||||
|
||||
const clickHandler = () => trigger({ conversationId });
|
||||
const clickHandler = () => trigger({ conversationId, source: 'button' });
|
||||
const handler = renaming ? cancelHandler : clickHandler;
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue