mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
model menu won't close on model deletion
This commit is contained in:
parent
0ba92c4c03
commit
a286f027c8
4 changed files with 4 additions and 29 deletions
|
|
@ -68,23 +68,15 @@ export default function ModelMenu() {
|
|||
dispatch(setCustomGpt({ chatGptLabel, promptPrefix }));
|
||||
dispatch(setModel('chatgptCustom'));
|
||||
dispatch(setCustomModel(value));
|
||||
if (custom) {
|
||||
setMenuOpen((prevOpen) => !prevOpen);
|
||||
}
|
||||
// if (custom) {
|
||||
// setMenuOpen((prevOpen) => !prevOpen);
|
||||
// }
|
||||
} else if (!modelMap[value]) {
|
||||
dispatch(setCustomModel(null));
|
||||
}
|
||||
|
||||
// Set new conversation
|
||||
dispatch(setNewConvo());
|
||||
// dispatch(
|
||||
// setConversation({
|
||||
// title: 'New Chat',
|
||||
// error: false,
|
||||
// conversationId: null,
|
||||
// parentMessageId: null
|
||||
// })
|
||||
// );
|
||||
};
|
||||
|
||||
const onOpenChange = (open) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue