Skip to content

Commit

Permalink
Reset pagination upon filter change (#55797)
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored Nov 2, 2023
1 parent 1893321 commit 0aba1a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/edit-site/src/components/dataviews/in-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export default ( { filter, view, onChangeView } ) => {

onChangeView( ( currentView ) => ( {
...currentView,
page: 1,
filters: cleanEmptyObject( {
...currentView.filters,
[ filter.id ]: value,
Expand Down

0 comments on commit 0aba1a2

Please sign in to comment.