From 2f993c4acdf05d053db5721024f8ee9390e6fce7 Mon Sep 17 00:00:00 2001 From: Carsten Koch Date: Sun, 15 Dec 2024 17:44:43 +0100 Subject: [PATCH] fix: message input reaction on changes --- components/chat/MessageInput.tsx | 2 +- components/ui-elements/editors/inbox-editor/useExtensions.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/chat/MessageInput.tsx b/components/chat/MessageInput.tsx index 0719674c9..16bcbbc30 100644 --- a/components/chat/MessageInput.tsx +++ b/components/chat/MessageInput.tsx @@ -38,7 +38,7 @@ const MessageInput: FC = ({ id, onSend, className }) => { useEffect(() => { setCurrentJobByUser(user, chatUser, setCurrentJob); - }, [chatUser, user?.userName]); + }, [chatUser, user]); useEffect(() => { setMentionedPeopleByPrompt(prompt, setMentionedPeople); diff --git a/components/ui-elements/editors/inbox-editor/useExtensions.ts b/components/ui-elements/editors/inbox-editor/useExtensions.ts index 9ffab28f1..dbcc705af 100644 --- a/components/ui-elements/editors/inbox-editor/useExtensions.ts +++ b/components/ui-elements/editors/inbox-editor/useExtensions.ts @@ -64,7 +64,7 @@ const useExtensions = (placeholder: string): EditorOptions["extensions"] => { }), LinkBubbleMenuHandler, ]; - }, []); + }, [placeholder]); return extensions; };