From 4d3704724b43bc8231edc63fea4f2107d40b2ed8 Mon Sep 17 00:00:00 2001 From: Guillermo Date: Fri, 20 Oct 2023 08:47:13 +0200 Subject: [PATCH] chore: reverse flat --- .../load-history-queries-from-browser-storage.action.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); };