Skip to content

Commit

Permalink
fix(web) ingestion page resets when filter updated (datahub-project#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
jayacryl authored and Mihai Ciocirdel committed Feb 12, 2025
1 parent 62ea85d commit 63b6236
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ export const IngestionSourceList = () => {
const [sort, setSort] = useState<SortCriterion>();
const [hideSystemSources, setHideSystemSources] = useState(true);

// When source filter changes, reset page to 1
useEffect(() => {
setPage(1);
}, [sourceFilter]);

/**
* Show or hide system ingestion sources using a hidden command S command.
*/
Expand Down

0 comments on commit 63b6236

Please sign in to comment.