Skip to content

Commit

Permalink
chore: remove effect dependency #283
Browse files Browse the repository at this point in the history
  • Loading branch information
srizvi committed Apr 28, 2024
1 parent 537fb6a commit 57931e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/mai-sc/src/ui/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ export function Chat({ id, className, session, missingKeys }: ChatProps) {
useEffect(() => {
console.log(`🤖 Setting new chat ID in local storage: ${id}`);
setNewChatId(id);
}, [id, setNewChatId]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [id]);

useEffect(() => {
console.log('🤖 Checking for missing environment keys');
Expand Down

0 comments on commit 57931e0

Please sign in to comment.