Skip to content

Commit

Permalink
fix(search): replace results state to append new results instead of p…
Browse files Browse the repository at this point in the history
…ushing them
  • Loading branch information
joseacabaneros committed Aug 14, 2024
1 parent 40f6f66 commit a2cba99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x-components/src/x-modules/search/store/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const searchXStoreModule: SearchXStoreModule = {
},
mutations: {
appendResults(state, results) {
state.results.push(...results);
state.results = [...state.results, ...results];
},
resetState(state) {
Object.assign(state, resettableState());
Expand Down

0 comments on commit a2cba99

Please sign in to comment.