Skip to content

Commit

Permalink
fix(history-queries): legacy history queries stored in the browser wi…
Browse files Browse the repository at this point in the history
…thout selected filters (#1333)
  • Loading branch information
CachedaCodes authored Oct 23, 2023
1 parent 7ecff91 commit 96608f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/x-components/src/x-modules/facets/wiring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export const setSelectedFiltersFromPreview = wireCommit(
*/
export const setFiltersFromHistoryQueries = wireCommit(
'setFilters',
({ eventPayload: { selectedFilters } }) => selectedFilters
({ eventPayload: { selectedFilters } }) => selectedFilters ?? []
);

/**
Expand Down
6 changes: 3 additions & 3 deletions packages/x-components/src/x-modules/search/wiring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ export const setSearchSelectedFiltersFromPreview = wireCommit(
*
* @public
*/
export const setSearchSelectedFiltersFromPreviewable = wireCommit(
export const setSearchSelectedFiltersFromHistoryQuery = wireCommit(
'setSelectedFilters',
({ eventPayload: { selectedFilters } }) => selectedFilters
({ eventPayload: { selectedFilters } }) => selectedFilters ?? []
);

/**
Expand Down Expand Up @@ -294,6 +294,6 @@ export const searchWiring = createWiring({
setSearchExtraParams
},
UserSelectedAHistoryQuery: {
setSearchSelectedFiltersFromPreviewable
setSearchSelectedFiltersFromHistoryQuery
}
});

0 comments on commit 96608f8

Please sign in to comment.