Skip to content

Commit

Permalink
fix(CUSTOM_MODELS):ChatGPTNextWeb#3349 Dependency chatStore otherwise…
Browse files Browse the repository at this point in the history
… the session and view will not updated
  • Loading branch information
durianice committed Nov 23, 2023
1 parent f248593 commit 261a8fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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"]}>
Expand Down

0 comments on commit 261a8fd

Please sign in to comment.