fix(CUSTOM_MODELS):#3349 Dependency chatStore otherwise the session and view will not updated

This commit is contained in:
durian 2023-11-23 15:36:10 +08:00
parent f2485931d9
commit 261a8fd83b

View File

@ -449,8 +449,7 @@ export function ChatActions(props: {
); );
showToast(nextModel); showToast(nextModel);
} }
// eslint-disable-next-line react-hooks/exhaustive-deps }, [chatStore, currentModel, models]);
}, [currentModel, models]);
return ( return (
<div className={styles["chat-input-actions"]}> <div className={styles["chat-input-actions"]}>