From 80695cbf68db5637f935bfb61dcf6ef30b15a876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B2=D0=B0=D0=BD=20=D0=9B=D0=B0=D0=B9=D0=B5=D1=80?= Date: Tue, 29 Oct 2024 23:35:52 +0300 Subject: [PATCH] Fix --- src/store/slices/productSlice.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/slices/productSlice.ts b/src/store/slices/productSlice.ts index a757126b0..1ebf4de28 100644 --- a/src/store/slices/productSlice.ts +++ b/src/store/slices/productSlice.ts @@ -49,7 +49,7 @@ const productSlice = createSlice( state.productList.unshift(action.payload); }, addProductsToList(state, action: PayloadAction) { - state.productList.push(...action.payload); + state.productList = action.payload; }, cleanProductList(state) { state.productList = [];