From fe9bc02d108cb06910a5fb01591cbd6f9bdb4615 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 22 Nov 2025 16:41:30 +0100 Subject: [PATCH] fix(components): use ts-expect-error in mentionSuggestion.ts - Replace 'as any' with @ts-expect-error comment - This is needed because projectId is used for URL replacement but not part of IAbstract --- .../src/components/input/editor/mention/mentionSuggestion.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/input/editor/mention/mentionSuggestion.ts b/frontend/src/components/input/editor/mention/mentionSuggestion.ts index 208e9d81d..55a60abae 100644 --- a/frontend/src/components/input/editor/mention/mentionSuggestion.ts +++ b/frontend/src/components/input/editor/mention/mentionSuggestion.ts @@ -17,8 +17,9 @@ interface MentionItem extends MentionNodeAttrs { async function searchUsersForProject(projectId: number, query: string): Promise { const projectUserService = new ProjectUserService() - + // Use server-side search with the 's' parameter + // @ts-expect-error - projectId is used for URL replacement but not part of IAbstract const users = await projectUserService.getAll({ projectId }, { s: query }) as IUser[] // Fetch avatar URLs for all users