From a2cba994f1f62cfe8add4535bf1ecf3a14a30010 Mon Sep 17 00:00:00 2001 From: "Jose A. Cabaneros" Date: Wed, 14 Aug 2024 16:17:46 +0200 Subject: [PATCH] fix(search): replace results state to append new results instead of pushing them --- packages/x-components/src/x-modules/search/store/module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/x-components/src/x-modules/search/store/module.ts b/packages/x-components/src/x-modules/search/store/module.ts index 1679d1f71d..6281fe371d 100644 --- a/packages/x-components/src/x-modules/search/store/module.ts +++ b/packages/x-components/src/x-modules/search/store/module.ts @@ -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());