From 3290d1f8ea6e31688022d2bc9384ede002c983e3 Mon Sep 17 00:00:00 2001 From: Laura Martinez Garcia Date: Wed, 11 Oct 2023 14:42:10 +0200 Subject: [PATCH] fix: filters in search and facets wiring --- packages/x-components/src/x-modules/facets/wiring.ts | 2 +- packages/x-components/src/x-modules/search/wiring.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/x-components/src/x-modules/facets/wiring.ts b/packages/x-components/src/x-modules/facets/wiring.ts index 7812715b93..cd7f2ecf3e 100644 --- a/packages/x-components/src/x-modules/facets/wiring.ts +++ b/packages/x-components/src/x-modules/facets/wiring.ts @@ -173,7 +173,7 @@ export const setSelectedFiltersFromPreview = wireCommit( */ export const setFiltersFromHistoryQueries = wireCommit( 'setFilters', - ({ eventPayload: { filters } }) => filters + ({ eventPayload: { selectedFilters } }) => selectedFilters ); /** diff --git a/packages/x-components/src/x-modules/search/wiring.ts b/packages/x-components/src/x-modules/search/wiring.ts index 5e794d02b8..a85d03136c 100644 --- a/packages/x-components/src/x-modules/search/wiring.ts +++ b/packages/x-components/src/x-modules/search/wiring.ts @@ -221,7 +221,7 @@ export const setSearchSelectedFiltersFromPreview = wireCommit( */ export const setSearchSelectedFiltersFromPreviewable = wireCommit( 'setSelectedFilters', - ({ eventPayload: { filters } }) => filters + ({ eventPayload: { selectedFilters } }) => selectedFilters ); /**