From 2830d946db7fffbb5fd8efd49e5f440655a56dbf Mon Sep 17 00:00:00 2001 From: Laura Martinez Garcia Date: Wed, 11 Oct 2023 13:27:53 +0200 Subject: [PATCH] fix: change field name --- .../update-history-queries-with-search-response.action.ts | 2 +- .../x-components/src/x-modules/history-queries/store/module.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/x-components/src/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.ts b/packages/x-components/src/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.ts index 2e9f099ef1..1e7968525e 100644 --- a/packages/x-components/src/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.ts +++ b/packages/x-components/src/x-modules/history-queries/store/actions/update-history-queries-with-search-response.action.ts @@ -37,7 +37,7 @@ export const updateHistoryQueriesWithSearchResponse: HistoryQueriesXStoreModule[ newHistoryQueries[indexOfHistoryQuery] = { ...historyQuery, totalResults: searchResponse.totalResults, - filters + selectedFilters: filters }; return dispatch('setHistoryQueries', newHistoryQueries); } diff --git a/packages/x-components/src/x-modules/history-queries/store/module.ts b/packages/x-components/src/x-modules/history-queries/store/module.ts index 10c129ce64..03f769cf6c 100644 --- a/packages/x-components/src/x-modules/history-queries/store/module.ts +++ b/packages/x-components/src/x-modules/history-queries/store/module.ts @@ -55,7 +55,7 @@ export const historyQueriesXStoreModule: HistoryQueriesXStoreModule = { state.isEnabled = isEnabled; }, setSearchSelectedFilters(state, filters) { - state.historyQueries[0].filters = filters; + state.historyQueries[0].selectedFilters = filters; } }, actions: {