From 366fde13ced5849f757dd7f52803203f066fcc70 Mon Sep 17 00:00:00 2001 From: Simon Knott Date: Fri, 14 Feb 2025 10:36:16 +0100 Subject: [PATCH] lint --- packages/trace-viewer/src/ui/errorsTab.tsx | 2 +- packages/trace-viewer/src/ui/llm.tsx | 2 +- packages/web/src/uiUtils.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/trace-viewer/src/ui/errorsTab.tsx b/packages/trace-viewer/src/ui/errorsTab.tsx index d45ac0d1ec..ce914f795c 100644 --- a/packages/trace-viewer/src/ui/errorsTab.tsx +++ b/packages/trace-viewer/src/ui/errorsTab.tsx @@ -183,7 +183,7 @@ export function AIErrorConversation({ conversationId, error, pageSnapshot, diff displayContent += ` Take the page snapshot into account.`; conversation.send(content, displayContent); - }, [conversation]); + }, [conversation]); // eslint-disable-line react-hooks/exhaustive-deps return ; } diff --git a/packages/trace-viewer/src/ui/llm.tsx b/packages/trace-viewer/src/ui/llm.tsx index 0a68371a5f..333cb265d8 100644 --- a/packages/trace-viewer/src/ui/llm.tsx +++ b/packages/trace-viewer/src/ui/llm.tsx @@ -244,7 +244,7 @@ export function useLLMConversation(id: string, systemPrompt: string) { const chat = useLLMChat(); if (!chat) throw new Error('No LLM chat available, make sure theres a LLMProvider above'); - const conversation = React.useMemo(() => chat.getConversation(id, systemPrompt), [chat, id]); + const conversation = React.useMemo(() => chat.getConversation(id, systemPrompt), [chat, id]); // eslint-disable-line react-hooks/exhaustive-deps const [history, setHistory] = React.useState(conversation.history); React.useEffect(() => { function update() { diff --git a/packages/web/src/uiUtils.ts b/packages/web/src/uiUtils.ts index f7be09ef24..cded19af20 100644 --- a/packages/web/src/uiUtils.ts +++ b/packages/web/src/uiUtils.ts @@ -255,6 +255,6 @@ export function useCookies() { const separator = kv.indexOf('='); return [kv.substring(0, separator), kv.substring(separator + 1)]; }); - }, [document.cookie]); + }, []); return cookies; }