Skip to content

Commit

Permalink
Fix Pagination should reset when a new filter is applied to the entit…
Browse files Browse the repository at this point in the history
…y table
  • Loading branch information
machadoum committed Oct 29, 2024
1 parent 3c7268d commit 4e364fb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ export const EntitiesList: React.FC = () => {
inspect: data?.inspect ?? null,
});

// Reset the active page when the search criteria changes
useEffect(() => {
setActivePage(0);
}, [sorting, limit, filter]);

const columns = useEntitiesListColumns();

// Force a refetch when "refresh" button is clicked.
Expand Down

0 comments on commit 4e364fb

Please sign in to comment.