Skip to content

Commit

Permalink
Reset page upon selecting a filter
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Nov 14, 2023
1 parent 16f5315 commit e3777f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/edit-site/src/components/dataviews/add-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ export default function AddFilter( { fields, view, onChangeView } ) {
onSelect={ () => {
onChangeView( ( currentView ) => ( {
...currentView,
page: 1,
filters: [
...currentView.filters,
{
Expand Down

0 comments on commit e3777f2

Please sign in to comment.