From c96f0433babb2ad698c3a80641908c990e8e6726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Wed, 1 Apr 2026 22:42:02 +0200 Subject: [PATCH] Lint --- .../AgentChatThreadInitializationEffect.tsx | 19 +++++++++---------- .../src/modules/ai/hooks/useChatThreads.ts | 4 ++-- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/packages/twenty-front/src/modules/ai/components/AgentChatThreadInitializationEffect.tsx b/packages/twenty-front/src/modules/ai/components/AgentChatThreadInitializationEffect.tsx index 6352c6ac3f3..1652ec6d9c1 100644 --- a/packages/twenty-front/src/modules/ai/components/AgentChatThreadInitializationEffect.tsx +++ b/packages/twenty-front/src/modules/ai/components/AgentChatThreadInitializationEffect.tsx @@ -31,7 +31,7 @@ export const AgentChatThreadInitializationEffect = () => { agentChatThreadsLoadingState, ); const store = useStore(); - const threads = useAtomStateValue(agentChatThreadsSelector); + const agentChatThreads = useAtomStateValue(agentChatThreadsSelector); const storeEntry = useAtomValue( metadataStoreState.atomFamily('agentChatThreads'), ); @@ -95,15 +95,14 @@ export const AgentChatThreadInitializationEffect = () => { setAgentChatUsage(null); } }, [ - currentAIChatThread, - threads, - storeEntry.status, - setCurrentAIChatThread, - setAgentChatInput, - setCurrentAIChatThreadTitle, - setAgentChatUsage, - store, - ]); + currentAIChatThread, + storeEntry.status, + setCurrentAIChatThread, + setAgentChatInput, + setCurrentAIChatThreadTitle, + setAgentChatUsage, + store +]); return null; }; diff --git a/packages/twenty-front/src/modules/ai/hooks/useChatThreads.ts b/packages/twenty-front/src/modules/ai/hooks/useChatThreads.ts index 563b77396f9..ae7b802c368 100644 --- a/packages/twenty-front/src/modules/ai/hooks/useChatThreads.ts +++ b/packages/twenty-front/src/modules/ai/hooks/useChatThreads.ts @@ -6,7 +6,7 @@ import { metadataStoreState } from '@/metadata-store/states/metadataStoreState'; import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue'; export const useChatThreads = () => { - const allThreads = useAtomStateValue(agentChatThreadsSelector); + const agentChatThreads = useAtomStateValue(agentChatThreadsSelector); const storeEntry = useAtomValue( metadataStoreState.atomFamily('agentChatThreads'), ); @@ -17,7 +17,7 @@ export const useChatThreads = () => { (a, b) => new Date(b.updatedAt).getTime() - new Date(a.updatedAt).getTime(), ), - [allThreads], + [], ); return {