From 0884b63406135a817a7134a76f3a70f62f314d39 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Tue, 12 May 2026 23:25:33 +0530 Subject: [PATCH] chore: ran linting --- surfsense_web/atoms/chat/mentioned-documents.atom.ts | 4 +--- .../components/new-chat/document-mention-picker.tsx | 7 ++----- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/surfsense_web/atoms/chat/mentioned-documents.atom.ts b/surfsense_web/atoms/chat/mentioned-documents.atom.ts index eafdaf87e..9163960f4 100644 --- a/surfsense_web/atoms/chat/mentioned-documents.atom.ts +++ b/surfsense_web/atoms/chat/mentioned-documents.atom.ts @@ -97,9 +97,7 @@ export const mentionedDocumentIdsAtom = atom((get) => { surfsense_doc_ids: docs .filter((doc) => doc.document_type === "SURFSENSE_DOCS") .map((doc) => doc.id), - document_ids: docs - .filter((doc) => doc.document_type !== "SURFSENSE_DOCS") - .map((doc) => doc.id), + document_ids: docs.filter((doc) => doc.document_type !== "SURFSENSE_DOCS").map((doc) => doc.id), folder_ids: folders.map((f) => f.id), }; }); diff --git a/surfsense_web/components/new-chat/document-mention-picker.tsx b/surfsense_web/components/new-chat/document-mention-picker.tsx index 0881b11b6..0d68c8df8 100644 --- a/surfsense_web/components/new-chat/document-mention-picker.tsx +++ b/surfsense_web/components/new-chat/document-mention-picker.tsx @@ -301,8 +301,7 @@ export const DocumentMentionPicker = forwardRef< // folder entries lift the existing kind-aware key so the same // matchers used by the chip atom apply unchanged. const selectedKeys = useMemo( - () => - new Set(initialSelectedDocuments.map((d) => getMentionDocKey(d))), + () => new Set(initialSelectedDocuments.map((d) => getMentionDocKey(d))), [initialSelectedDocuments] ); @@ -583,9 +582,7 @@ export const DocumentMentionPicker = forwardRef< {(surfsenseDocsList.length > 0 || userDocsList.length > 0) && (
)} -