From ab6976a785e4be998d793bb8d418724c06c537be Mon Sep 17 00:00:00 2001 From: statefb Date: Thu, 25 Jul 2024 17:54:29 +0900 Subject: [PATCH] chore: remove eslint-disabled-line --- frontend/src/components/InputChatContent.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/InputChatContent.tsx b/frontend/src/components/InputChatContent.tsx index f1ff5ac0..32972bbb 100644 --- a/frontend/src/components/InputChatContent.tsx +++ b/frontend/src/components/InputChatContent.tsx @@ -284,7 +284,13 @@ const InputChatContent: React.FC = (props) => { }; }; }, - [pushBase64EncodedImage, totalFileSizeToSend, setTotalFileSizeToSend] // eslint-disable-line react-hooks/exhaustive-deps + [ + pushBase64EncodedImage, + totalFileSizeToSend, + setTotalFileSizeToSend, + open, + t, + ] ); const handleAttachedFileRead = useCallback( @@ -337,7 +343,7 @@ const InputChatContent: React.FC = (props) => { }; reader.readAsArrayBuffer(file); }, - [pushTextFile, totalFileSizeToSend, setTotalFileSizeToSend] // eslint-disable-line react-hooks/exhaustive-deps + [pushTextFile, totalFileSizeToSend, setTotalFileSizeToSend, open, t] ); useEffect(() => {