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
This commit is contained in:
kolaente 2025-11-22 16:41:30 +01:00
parent 412fd3a221
commit fe9bc02d10
1 changed files with 2 additions and 1 deletions

View File

@ -17,8 +17,9 @@ interface MentionItem extends MentionNodeAttrs {
async function searchUsersForProject(projectId: number, query: string): Promise<MentionItem[]> {
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