mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-07 18:43:20 +08:00
fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated
This commit is contained in:
@@ -449,8 +449,7 @@ export function ChatActions(props: {
|
||||
);
|
||||
showToast(nextModel);
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [currentModel, models]);
|
||||
}, [chatStore, currentModel, models]);
|
||||
|
||||
return (
|
||||
<div className={styles["chat-input-actions"]}>
|
||||
|
Reference in New Issue
Block a user