Skip to content

Commit

Permalink
Merge pull request #272 from cabcookie:add-ai-tools
Browse files Browse the repository at this point in the history
fix: message input reaction on changes
  • Loading branch information
cabcookie authored Dec 15, 2024
2 parents 666f24b + 9a58c18 commit 82eb803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/chat/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MessageInput: FC<MessageInputProps> = ({ id, onSend, className }) => {

useEffect(() => {
setCurrentJobByUser(user, chatUser, setCurrentJob);
}, [chatUser, user?.userName]);
}, [chatUser, user]);

useEffect(() => {
setMentionedPeopleByPrompt(prompt, setMentionedPeople);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const useExtensions = (placeholder: string): EditorOptions["extensions"] => {
}),
LinkBubbleMenuHandler,
];
}, []);
}, [placeholder]);

return extensions;
};
Expand Down

0 comments on commit 82eb803

Please sign in to comment.