Skip to content

Commit

Permalink
chore(connect-explorer): remove redundant (?) code
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Oct 2, 2024
1 parent 6f1c240 commit 03fd53f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/connect-explorer/src/reducers/methodReducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ const findField = (state: MethodState, field: Field<any>) => {

// Update field value
const onFieldChange = (state: MethodState, _field: Field<any>, value: any) => {
const newState = {
...JSON.parse(JSON.stringify(state)),
...state,
};
const newState = JSON.parse(JSON.stringify(state));
const field = findField(newState, _field);
if (!field || !isFieldBasic(field)) return state;
field.value = value;
Expand Down

0 comments on commit 03fd53f

Please sign in to comment.