diff --git a/packages/x-components/src/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.ts b/packages/x-components/src/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.ts index 2752b6ea04..2a3f58d158 100644 --- a/packages/x-components/src/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.ts +++ b/packages/x-components/src/x-modules/history-queries/store/actions/load-history-queries-from-browser-storage.action.ts @@ -13,7 +13,6 @@ import { HistoryQueriesXStoreModule } from '../types'; // eslint-disable-next-line max-len export const loadHistoryQueriesFromBrowserStorage: HistoryQueriesXStoreModule['actions']['loadHistoryQueriesFromBrowserStorage'] = ({ commit, getters }) => { - const historyQueries = - localStorageService.getItem(getters.storageKey) ?? []; - commit('setHistoryQueries', [historyQueries].flat()); + const historyQueries = localStorageService.getItem(getters.storageKey) ?? []; + commit('setHistoryQueries', historyQueries); };