Skip to content

Commit

Permalink
Reset pagination if filter changes
Browse files Browse the repository at this point in the history
  • Loading branch information
glendaviesnz committed Sep 22, 2023
1 parent f42cbc7 commit 42e8aa1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,13 +151,15 @@ function BlockPatternList( {
showTitlesAsTooltip,
currentCategoryPatterns,
category,
patternFilter,
} ) {
const composite = useCompositeState( { orientation } );
const container = useRef();
const pagingProps = usePatternsPaging(
currentCategoryPatterns,
category,
container
container,
patternFilter
);
const {
categoryPatternsAsyncList: shownPatterns,
Expand Down

0 comments on commit 42e8aa1

Please sign in to comment.