chore: ran linting

This commit is contained in:
Anish Sarkar 2026-05-12 23:25:33 +05:30
parent 32ff864fd3
commit 0884b63406
2 changed files with 3 additions and 8 deletions

View file

@ -97,9 +97,7 @@ export const mentionedDocumentIdsAtom = atom((get) => {
surfsense_doc_ids: docs surfsense_doc_ids: docs
.filter((doc) => doc.document_type === "SURFSENSE_DOCS") .filter((doc) => doc.document_type === "SURFSENSE_DOCS")
.map((doc) => doc.id), .map((doc) => doc.id),
document_ids: docs document_ids: docs.filter((doc) => doc.document_type !== "SURFSENSE_DOCS").map((doc) => doc.id),
.filter((doc) => doc.document_type !== "SURFSENSE_DOCS")
.map((doc) => doc.id),
folder_ids: folders.map((f) => f.id), folder_ids: folders.map((f) => f.id),
}; };
}); });

View file

@ -301,8 +301,7 @@ export const DocumentMentionPicker = forwardRef<
// folder entries lift the existing kind-aware key so the same // folder entries lift the existing kind-aware key so the same
// matchers used by the chip atom apply unchanged. // matchers used by the chip atom apply unchanged.
const selectedKeys = useMemo( const selectedKeys = useMemo(
() => () => new Set(initialSelectedDocuments.map((d) => getMentionDocKey(d))),
new Set(initialSelectedDocuments.map((d) => getMentionDocKey(d))),
[initialSelectedDocuments] [initialSelectedDocuments]
); );
@ -583,9 +582,7 @@ export const DocumentMentionPicker = forwardRef<
{(surfsenseDocsList.length > 0 || userDocsList.length > 0) && ( {(surfsenseDocsList.length > 0 || userDocsList.length > 0) && (
<div className="mx-2 my-4 border-t border-border dark:border-white/5" /> <div className="mx-2 my-4 border-t border-border dark:border-white/5" />
)} )}
<div className="px-3 py-2 text-xs font-bold text-muted-foreground/55"> <div className="px-3 py-2 text-xs font-bold text-muted-foreground/55">Folders</div>
Folders
</div>
{folderMentions.map((folder) => { {folderMentions.map((folder) => {
const folderKey = getMentionDocKey(folder); const folderKey = getMentionDocKey(folder);
const isAlreadySelected = selectedKeys.has(folderKey); const isAlreadySelected = selectedKeys.has(folderKey);