diff --git a/src/components/templates/user-table.tsx b/src/components/templates/user-table.tsx index 5beb8ba1f1..a07165a523 100644 --- a/src/components/templates/user-table.tsx +++ b/src/components/templates/user-table.tsx @@ -42,6 +42,7 @@ const UserTable: React.FC = ({ const [selectedInvite, setSelectedInvite] = useState(null) const notification = useNotification() const { store, isLoading } = useAdminStore() + const [query, setQuery] = useState("") useEffect(() => { setElements([ @@ -261,6 +262,7 @@ const UserTable: React.FC = ({ ] const handleUserSearch = (term: string) => { + setQuery(term) setShownElements( elements.filter( (e) => @@ -278,6 +280,7 @@ const UserTable: React.FC = ({ filteringOptions={filteringOptions} enableSearch handleSearch={handleUserSearch} + searchValue={query} >