diff --git a/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/Content.tsx b/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/Content.tsx index 780fe11bbfea..6c491515a8f3 100644 --- a/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/Content.tsx +++ b/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/Content.tsx @@ -32,4 +32,6 @@ const Content = memo(({ mobile }) => { return ; }); +Content.displayName = 'ChatListRender'; + export default Content; diff --git a/src/features/Conversation/components/ChatItem/index.tsx b/src/features/Conversation/components/ChatItem/index.tsx index a16931921470..fba0b7d2c5e3 100644 --- a/src/features/Conversation/components/ChatItem/index.tsx +++ b/src/features/Conversation/components/ChatItem/index.tsx @@ -188,7 +188,7 @@ const Item = memo(({ index, id, hideActionBar, showThreadDivi const onChange = useCallback((value: string) => updateMessageContent(id, value), [id]); - const onDoubleClick = useCallback( + const onDoubleClick = useCallback>( (e) => { if (!item) return; if (item.id === 'default' || item.error) return; @@ -196,7 +196,7 @@ const Item = memo(({ index, id, hideActionBar, showThreadDivi toggleMessageEditing(id, true); } }, - [item?.role, item?.id, item?.error], + [item], ); const text = useMemo( diff --git a/src/store/chat/slices/thread/action.ts b/src/store/chat/slices/thread/action.ts index 3ddb13ffbeaf..0d5e98c8c9ae 100644 --- a/src/store/chat/slices/thread/action.ts +++ b/src/store/chat/slices/thread/action.ts @@ -47,7 +47,7 @@ export const chatThreadMessage: StateCreator< ); }, updateThreadInputMessage: (message) => { - if (isEqual(message, get().inputMessage)) return; + if (isEqual(message, get().threadInputMessage)) return; set({ threadInputMessage: message }, false, n(`updateThreadInputMessage`, message)); },