diff --git a/packages/x-components/src/x-modules/facets/wiring.ts b/packages/x-components/src/x-modules/facets/wiring.ts index cd7f2ecf3e..6bb0fb64e3 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: { selectedFilters } }) => selectedFilters + ({ 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 a85d03136c..7679bce076 100644 --- a/packages/x-components/src/x-modules/search/wiring.ts +++ b/packages/x-components/src/x-modules/search/wiring.ts @@ -219,9 +219,9 @@ export const setSearchSelectedFiltersFromPreview = wireCommit( * * @public */ -export const setSearchSelectedFiltersFromPreviewable = wireCommit( +export const setSearchSelectedFiltersFromHistoryQuery = wireCommit( 'setSelectedFilters', - ({ eventPayload: { selectedFilters } }) => selectedFilters + ({ eventPayload: { selectedFilters } }) => selectedFilters ?? [] ); /** @@ -294,6 +294,6 @@ export const searchWiring = createWiring({ setSearchExtraParams }, UserSelectedAHistoryQuery: { - setSearchSelectedFiltersFromPreviewable + setSearchSelectedFiltersFromHistoryQuery } });