Skip to content

Commit

Permalink
chore: reverse flat
Browse files Browse the repository at this point in the history
  • Loading branch information
CachedaCodes committed Oct 20, 2023
1 parent 5981913 commit 4d37047
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<HistoryQuery[] | HistoryQuery>(getters.storageKey) ?? [];
commit('setHistoryQueries', [historyQueries].flat());
const historyQueries = localStorageService.getItem<HistoryQuery[]>(getters.storageKey) ?? [];
commit('setHistoryQueries', historyQueries);
};

0 comments on commit 4d37047

Please sign in to comment.