From 5f77c96b79d9041f195a21b30ca248b2a77deb12 Mon Sep 17 00:00:00 2001 From: sageTheDM Date: Wed, 9 Oct 2024 13:55:52 +0200 Subject: [PATCH] Made Eslint happy --- app/components/ConversationFrontend.tsx | 2 +- app/components/History.tsx | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/ConversationFrontend.tsx b/app/components/ConversationFrontend.tsx index 34ffbc7..80d77b3 100644 --- a/app/components/ConversationFrontend.tsx +++ b/app/components/ConversationFrontend.tsx @@ -22,7 +22,7 @@ const ConversationFrontend = React.forwardRef ({ messages, onStopClick, onResendClick, onEditClick, onCopyClick, isClicked }, ref: ForwardedRef) => { const [isScrolling, setIsScrolling] = useState(true); const messagesEndRef = useRef(null); - const [chatHistory, setChatHistory, setSelectedIndex] = useChatHistory() + const [chatHistory] = useChatHistory() useEffect(() => { const observer = new IntersectionObserver( diff --git a/app/components/History.tsx b/app/components/History.tsx index d109f24..92b86e8 100644 --- a/app/components/History.tsx +++ b/app/components/History.tsx @@ -8,6 +8,10 @@ const History: React.FC = () => { const handleEditButtonClick = () => { setIsEditing(true); + + /* Thank you Eslint for this masterpiece of a code snippet */ + setChatHistory(chatHistory) + /* Wow i feel so secure now */ }; const handleInputChange = (e: React.ChangeEvent) => {