fix: Share filtering does not pass query to server, closes #7006

This commit is contained in:
Tom Moor
2024-06-07 21:36:27 -04:00
parent 8762adacbb
commit 946cbce06e

View File

@@ -59,11 +59,11 @@ export const Suggestions = observer(
const theme = useTheme(); const theme = useTheme();
const fetchUsersByQuery = useThrottledCallback( const fetchUsersByQuery = useThrottledCallback(
(params) => { (query: string) => {
void users.fetchPage({ query: params.query }); void users.fetchPage({ query });
if (showGroups) { if (showGroups) {
void groups.fetchPage({ query: params.query }); void groups.fetchPage({ query });
} }
}, },
250, 250,