aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/store/form/reducers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/store/form/reducers.ts b/src/store/form/reducers.ts
index 21bd047..d7d3388 100644
--- a/src/store/form/reducers.ts
+++ b/src/store/form/reducers.ts
@@ -9,7 +9,7 @@ export const initialState: FormState = {
};
export function formReducer(state = initialState, action: Action): FormState {
- const new_state = state;
+ const new_state = {...state};
switch (action.type) {
case FormAction.SET_VALUE:
new_state.values.set(action.payload.question.id, action.payload.value);