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:
parent
412fd3a221
commit
fe9bc02d10
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue