Skip to content

Commit

Permalink
[#3688] Make sure old fields are deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Feb 21, 2024
1 parent 9ee405b commit 05e6346
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ const ObjectsApiOptionsFormFields = ({index, name, schema, formData, onChange})
onChange(
produce(formData, draft => {
draft.version = index + 1;
draft.contentJson = '';
draft.paymentStatusUpdateJson = '';
delete draft.contentJson;
delete draft.paymentStatusUpdateJson;
})
);
};
Expand Down

0 comments on commit 05e6346

Please sign in to comment.