diff --git a/webapp/src/components/user_multi_select/index.tsx b/webapp/src/components/user_multi_select/index.tsx index 50a85f8..7d6a65d 100644 --- a/webapp/src/components/user_multi_select/index.tsx +++ b/webapp/src/components/user_multi_select/index.tsx @@ -102,7 +102,7 @@ const UserMultiSelect: React.FC = ({value, onChange, placeholder, disable setLoading(true); try { const data = await Client4.autocompleteUsers(term, '', '', {limit: 20}); - setResults(data.users.filter((u: UserProfile) => !excluded.has(u.username))); + setResults(data.users.filter((u) => !excluded.has(u.username) && !(u as UserProfile & {remote_id?: string}).remote_id)); } catch { setResults([]); } finally { @@ -110,7 +110,7 @@ const UserMultiSelect: React.FC = ({value, onChange, placeholder, disable } }; - const doSearch = useMemo(() => debounce(performSearch, 400), []); // eslint-disable-line react-hooks/exhaustive-deps + const doSearch = useMemo(() => debounce(performSearch, 400), []); const handleInputChange = (e: React.ChangeEvent) => { const term = e.target.value;