From b866bf2c21ccdaa960188d27f5cf9aaec2a6b9a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Maneiro?= <583546+oandregal@users.noreply.github.com> Date: Thu, 2 Nov 2023 10:36:52 +0100 Subject: [PATCH] Reset pagination upon filter change --- packages/edit-site/src/components/dataviews/in-filter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/edit-site/src/components/dataviews/in-filter.js b/packages/edit-site/src/components/dataviews/in-filter.js index ca9436f5a7ea1f..82db4161081e54 100644 --- a/packages/edit-site/src/components/dataviews/in-filter.js +++ b/packages/edit-site/src/components/dataviews/in-filter.js @@ -34,6 +34,7 @@ export default ( { filter, view, onChangeView } ) => { onChangeView( ( currentView ) => ( { ...currentView, + page: 1, filters: cleanEmptyObject( { ...currentView.filters, [ filter.id ]: value,