From e9d2f9264514ce8ccbe5c98576cec0c1778fa67a Mon Sep 17 00:00:00 2001 From: Humenchuk Anastasiia Date: Mon, 30 Dec 2024 14:38:00 +0200 Subject: [PATCH] add task solution --- src/transformStateWithClones.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/transformStateWithClones.js b/src/transformStateWithClones.js index 53f9edcca..42ab6ab3a 100644 --- a/src/transformStateWithClones.js +++ b/src/transformStateWithClones.js @@ -21,6 +21,7 @@ function transformStateWithClones(state, actions) { } else if (action.type === 'clear') { stateHistory = {}; } + states.push({ ...stateHistory }); }