diff --git a/front/components/vaults/SearchMembersPopover.tsx b/front/components/vaults/SearchMembersPopover.tsx index b8f48bdfce76..4605746c5f07 100644 --- a/front/components/vaults/SearchMembersPopover.tsx +++ b/front/components/vaults/SearchMembersPopover.tsx @@ -52,10 +52,10 @@ export function SearchMembersPopover({ }, [members, isLoading]); useEffect(() => { - // reset allMembers when search term changes - setAllMembers(members); + // reset allMembers and pagination when search term changes + setAllMembers([]); setPagination(DefaultPagination); - }, [members, searchTerm]); + }, [searchTerm]); const filteredMembers = useMemo(() => { return allMembers.filter( @@ -83,7 +83,7 @@ export function SearchMembersPopover({