From 2622777fc89fb1702c6762d30ed01e7f43f027bd Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Sun, 7 Jul 2024 11:40:52 -0400 Subject: [PATCH] Fix warnings --- webview-ui/src/components/ChatView.tsx | 1 + webview-ui/src/components/SettingsView.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/webview-ui/src/components/ChatView.tsx b/webview-ui/src/components/ChatView.tsx index 685b627..c24a19a 100644 --- a/webview-ui/src/components/ChatView.tsx +++ b/webview-ui/src/components/ChatView.tsx @@ -60,6 +60,7 @@ const ChatView = () => { setMessages(currentMessages => [...currentMessages, newMessage]) } }) + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) return ( diff --git a/webview-ui/src/components/SettingsView.tsx b/webview-ui/src/components/SettingsView.tsx index 3236b9b..21b351a 100644 --- a/webview-ui/src/components/SettingsView.tsx +++ b/webview-ui/src/components/SettingsView.tsx @@ -62,6 +62,7 @@ const SettingsView = ({ apiKey, setApiKey, maxRequestsPerTask, setMaxRequestsPer useEffect(() => { validateApiKey(apiKey) validateMaxRequests(maxRequestsPerTask) + // eslint-disable-next-line react-hooks/exhaustive-deps }, []) return (