From 946cbce06e73379faf22c4361fe5636395ec3bf4 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 7 Jun 2024 21:36:27 -0400 Subject: [PATCH] fix: Share filtering does not pass query to server, closes #7006 --- app/components/Sharing/components/Suggestions.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/components/Sharing/components/Suggestions.tsx b/app/components/Sharing/components/Suggestions.tsx index f31931769..4ea24e158 100644 --- a/app/components/Sharing/components/Suggestions.tsx +++ b/app/components/Sharing/components/Suggestions.tsx @@ -59,11 +59,11 @@ export const Suggestions = observer( const theme = useTheme(); const fetchUsersByQuery = useThrottledCallback( - (params) => { - void users.fetchPage({ query: params.query }); + (query: string) => { + void users.fetchPage({ query }); if (showGroups) { - void groups.fetchPage({ query: params.query }); + void groups.fetchPage({ query }); } }, 250,