We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 923d8ef commit 6ec31afCopy full SHA for 6ec31af
src/components/MessageInput/hooks/useUserTrigger.ts
@@ -105,7 +105,9 @@ export const useUserTrigger = <
105
id: { $ne: client.userID },
106
...mentionQueryParams.filters,
107
},
108
- { id: 1, ...mentionQueryParams.sort },
+ Array.isArray(mentionQueryParams.sort)
109
+ ? [{ id: 1 }, ...mentionQueryParams.sort]
110
+ : { id: 1, ...mentionQueryParams.sort },
111
{ limit: 10, ...mentionQueryParams.options },
112
);
113
0 commit comments